test_scripts/makefile_rmfile.pl

filter: Statementstmt 100% 19 / 19 Branchbran 50.0% 5 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 86.1% 31 / 36 CC 4 SCAR 4.9
CC
4
Cov
83%
__ANON__
2.1
__ANON__
2.1
__ANON__
2.1
CRAP 1.6
« blib/lib/Term/GentooFunctions.pm ↑ Summary test_scripts/test_edo_returns.pl »
1  
2 1 ▶die "you're not running this right, use make test" unless -d "blib/lib";
Branch: 1 branch
BranchTrueFalseTotal
unless -d "blib/lib" 0 1 1
3 1 ▶BEGIN { unshift @INC, "blib/lib" }
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Term::GentooFunctions qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶equiet(1) if $ENV{SHH_QUIET};
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"SHH_QUIET"} 0 1 1
10  
11 1 ▶edo "making file" => sub {
Subroutine __ANON__: called CC=2 SCAR=7.2
12 1 ▶ open OUT, ">file" or die "CREATE ERROR: $!"; close OUT;
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">file" or die "CREATE ERROR: $!" 1 0 1
13  
14 1 ▶ edo "rming file" => sub { unlink "file" or die "UNLINK ERROR: $!" };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
unlink "file" or die "UNLINK ERROR: $!" 1 0 1
15 1 };
16  
17 1 ▶edo "rming file again (fail)" => sub { unlink "file" or die "UNLINK ERROR: $!" };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
unlink "file" or die "UNLINK ERROR: $!" 0 1 1
« blib/lib/Term/GentooFunctions.pm ↑ Summary test_scripts/test_edo_returns.pl »