t/test20-streval.p

filter: Statementstmt 100% 6 / 6 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 81.8% 9 / 11 CC 1 SCAR 0.0
CC
1
Cov
80%
foo
1.0
CRAP 1.0
« t/test40pmc.pm ↑ Summary t/test62-tie-b.p »
1 # test merging of sub calls from eval fids
2  
3 64 ▶sub foo { print "foo\n" }
Subroutine foo: called CC=1 SCAR=0.0
4  
5 16 my $code = 'foo()';
6  
7 # call once from particular line
8 16 eval $code;
9  
10 # call twice from the same line
11 16 ▶eval $code or die $@; eval $code or die $@;
Branch: 2 branches
BranchTrueFalseTotal
eval $code or die $@ 16 0 16
eval $code or die $@ 16 0 16
12  
13 # once from an eval inside an eval
14 16 eval "eval q{$code}";
« t/test40pmc.pm ↑ Summary t/test62-tie-b.p »