[libdist-zilla-plugin-test-eol-perl] 08/13: test that more file types are tested

Intrigeri intrigeri at moszumanska.debian.org
Sun Aug 16 09:20:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 0.17
in repository libdist-zilla-plugin-test-eol-perl.

commit 155d1a73d798afbc6744ab2407029fc6c1e2c742
Author: Karen Etheridge <ether at cpan.org>
Date:   Fri Jan 30 23:30:41 2015 -0800

    test that more file types are tested
---
 t/01-basic.t | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/t/01-basic.t b/t/01-basic.t
index a48394a..b08a556 100644
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -24,6 +24,23 @@ use strict;
 use warnings;
 1;
 MODULE
+            path(qw(source lib Bar.pod)) => <<'POD',
+package Bar;
+=pod
+
+=cut
+POD
+            path(qw(source bin myscript)) => <<'SCRIPT',
+use strict;
+use warnings;
+print "hello there!\n";
+SCRIPT
+            path(qw(source t foo.t)) => <<'TEST',
+use strict;
+use warnings;
+use Test::More tests => 1;
+pass('hi!');
+TEST
         },
     },
 );
@@ -82,7 +99,8 @@ subtest 'run the generated test' => sub
     $files_tested = Test::Builder->new->current_test;
 };
 
-is($files_tested, 2, 'correct number of files were tested');
+# this should be 4 - but .pod is not being picked up by Test::EOL
+is($files_tested, 3, 'correct number of files were tested');
 
 diag 'got log messages: ', explain $tzil->log_messages
     if not Test::Builder->new->is_passing;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-eol-perl.git



More information about the Pkg-perl-cvs-commits mailing list