Test2::EventFacet::Coverage - File coverage information.
This facet has a list of files covered by the test run.
Summary of files run.
Arrayref of files touched during testing. This includes modules that were loaded or had subroutines called. This also includes files opened via open().
open()
{ 'SomeModule.pm' => { # The wildcard is used when a proper sub name cannot be determined '*' => { ... }, 'SomeModule::subroutine' => { sub_package => 'SomeModule', sub_name => 'subroutine', call_count => $INTEGER, # The items in this list can be anything, strings, numbers, # data structures, etc. # A naive attempt is made to avoid duplicates in this list, # so the same string or reference will not appear twice, but 2 # different references with identical contents may appear. called_by => [ '*', # The wildcard is used when no 'called by' can be determined $FROM_A, $FROM_B, ... ], }, }, ... }
{ # The items in this list can be anything, strings, numbers, # data structures, etc. # A naive attempt is made to avoid duplicates in this list, # so the same string or reference will not appear twice, but 2 # different references with identical contents may appear. "some_file.ext" => [ '*', # The wildcard is used when no 'called by' can be determined $FROM_A, $FROM_b, ], }
The source code repository for Test2-Plugin-Cover can be found at https://github.com/Test-More/Test2-Plugin-Cover.
Copyright 2020 Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
To install Test2::Plugin::Cover, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2::Plugin::Cover
CPAN shell
perl -MCPAN -e shell install Test2::Plugin::Cover
For more information on module installation, please visit the detailed CPAN module installation guide.