Skip to content

Commit e97d84f

Browse files
committedJan 18, 2012
Better methods for finding module names from package names for t/POD.t
1 parent 7406c02 commit e97d84f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎t/POD.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ plan tests => $moduleCount;
2828
foreach my $package (sort @modules) {
2929
my $pc = Pod::Coverage->new(
3030
package => $package,
31-
also_private => [ qr/definition/ ],
31+
also_private => [ qr/^definition$/, qr/^run$/],
3232
nonwhitespace => ($ENV{POD_COVERAGE} == 3 ? 1 : 0),
3333
);
3434
my $coverage = $pc->coverage > $threshold;
35-
my $goodReason = $pc->why_unrated() eq 'no public symbols defined';
35+
my $goodReason = $pc->why_unrated() eq'no public symbols defined';
3636
SKIP: {
3737
skip "No subroutines found by Devel::Symdump for $package", 1 if $goodReason;
3838
ok($coverage, sprintf "%s has %d%% POD coverage", $package, $pc->coverage*100);

0 commit comments

Comments
 (0)