Subject: | Test::Pod::Coverage does not understand blib |
When running pod coverage tests in B-Hooks-Parser (version 0.15 and up):
Failed test 'Pod coverage on arch::B::Hooks::Parser::Install::Files'
# at /Volumes/amaretto/Users/ether/.perlbrew/libs/23.1@std/lib/perl5/Test/Pod/Coverage.pm line 133.
# arch::B::Hooks::Parser::Install::Files: Couldn't compile 'arch::B::Hooks::Parser::Install::Files' to inspect: Can't locate arch/B/Hooks/Parser/Install/Files.pm in @INC (you may need to install the arch::B::Hooks::Parser::Install::Files module) (@INC contains: /Volumes/amaretto/Users/ether/git/B-Hooks-Parser/.build/IeJx3TwF9V/B-Hooks-Parser-0.15/blib/lib /Volumes/amaretto/Users/ether/git/B-Hooks-Parser/.build/IeJx3TwF9V/B-Hooks-Parser-0.15/blib/arch /Volumes/amaretto/Users/ether/git/B-Hooks-Parser/.build/IeJx3TwF9V/B-Hooks-Parser-0.15/blib/lib /Volumes/amaretto/Users/ether/git/B-Hooks-Parser/.build/IeJx3TwF9V/B-Hooks-Parser-0.15/blib/arch /Volumes/amaretto/Users/ether/.perlbrew/libs/23.1@std/lib/perl5/darwin-2level /Volumes/amaretto/Users/ether/.perlbrew/libs/23.1@std/lib/perl5 /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/23.1/lib/site_perl/5.23.1/darwin-2level /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/23.1/lib/site_perl/5.23.1 /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/23.1/lib/5.23.1/darwin-2level /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/23.1/lib/5.23.1 .) at (eval 28) line 2.
It found this file in the distribution: blib/arch/B/Hooks/Parser/Install/Files.pm
which starts with: package B::Hooks::Parser::Install::Files;
..and is getting confused because the package isn't named 'arch::*'. However, this is how blib works - it contains blib/lib and blib/arch. It needs to get smarter when traversing directories to understand how blib is laid out.