timbunce / devel-nytprof

Devel::NYTProf is a powerful feature-rich source code profiler for Perl. (Mostly in maintenance mode, so PRs are much more likely to be acted upon than Issues.)
http://blog.timbunce.org/tag/nytprof/
67 stars 51 forks source link

Document util 20210329 #148

Closed jkeenan closed 3 years ago

jkeenan commented 3 years ago

The objective of this branch is to exercise functions exported by Devel::NYTProf::Util and thereby increase the test suite's coverage of that code (as measured by Devel::Cover).

        stmt   bran   cond    sub  total
Before: 75.0   51.4   36.3   88.2   63.4
After:  97.3   80.8   72.7  100.0   87.0

There are a number of locations where functions were removed from use statements where the the functions were not used in the respective files.

Some relatively small refactoring of subroutines to make exceptions more testable. Where Devel::Cover indicated some blocks were not being exercised by the test suite, and where there was no clear rationale for retaining these blocks, the blocks were commented out so as not to adversely affect code coverage.