Covering/Recorder.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Covering.pm ↑ Summary
1 package Perl::Tests::Covering::Recorder;
2 1 $Perl::Tests::Covering::Recorder::VERSION = '0.003';
3 # ABSTRACT: Writes down every file a perl loaded, as it exits.
4  
5 1 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 END {
12 # Taken whole, which also untaints it for a test run under -T.
13 my ($dir) = ( $ENV{PERL_TESTS_COVERING_LOADED} // q{} ) =~ m/\A(.+)\z/saa;
14 if ( defined $dir && open my $fh, '>>', "$dir/loaded.$$" ) {
15 print {$fh} map { "$_\n" } grep { defined && index( $_, "\n" ) < 0 } $0, values %INC;
16 close $fh;
17 }
18 }
19  
20 1 1;
21  
22 __END__
« Covering.pm ↑ Summary