hi paul :) I recently discovered an issue with nested subroutines while using Devel::Cover with Parse::Yapp. the basic issue is that some subroutines are not discovered by Devel::Cover and thus no metrics are generated.
there are two files in the tarball. Foo.pm is a minimal test case showing that two subroutines are missing (one defined and one anonymous). Parser.pm is an autogenerated file based on Parser.yp that illustrates the same thing - note that the _missing() subroutine is missing from coverage results (as well as a handful of anonymous nested subroutines I think). the only interesting thing is that the behavior of my minimal test case and Parser.pm seem to be opposite - in the former the missing subroutine is the one that contains the anonymous sub, while in the latter is is the named subroutine that occurs after a nested anonymous sub. anyway, let me know if there is anything else I can do - I realize this is kind of obscure, so no pressure :) oh, and I tested using 0.46 and both 5.8.4 and 5.8.0. --Geoff
bug-devel-cover.tar.gz
Description: GNU Zip compressed data