Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/Test/Pod/Coverage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ sub pod_coverage_ok {
=head2 all_modules( [@dirs] )

Returns a list of all modules in I<$dir> and in directories below. If
no directories are passed, it defaults to F<blib> if F<blib> exists,
no directories are passed, it defaults to F<blib/lib> and/or F<blib/arch> if either of these exist,
or F<lib> if not.

Note that the modules are as "Foo::Bar", not "Foo/Bar.pm".
Expand Down Expand Up @@ -251,7 +251,10 @@ sub all_modules {
}

sub _starting_points {
return 'blib' if -e 'blib';
my @dirs;
push @dirs, 'blib/lib' if -d 'blib/lib';
push @dirs, 'blib/arch' if -d 'blib/arch';
return @dirs if @dirs;
return 'lib';
}

Expand Down