Subject: | sharedirs should be skipped |
all_modules() scans everything in blib, if it exists -- which includes sharedir content such as blib/lib/auto/share/module/<distname>/... -- sometimes this contains a .pm file, which should not be assumed to contain parsable pod (and indeed if it is unparsable, this test blows up).
This is a common occurrence for Dist::Zilla minting profiles, which packages a template 'Module.pm' file in a sharedir, and won't necessarily contain parsable pod nor executable perl. Test::Pod::Coverage needs to skip these files.
The simplest thing to do would be to prune directories at auto/.