lib/Perlmazing/Perlmazing/Precompile/not_empty.pm

filter: Statementstmt 100% 6 / 6 Branchbran 100% 2 / 2 Conditioncond 100% 3 / 3 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 CC 3 SCAR 9.2
CC
3
Cov
100%
main
3.0
BEGIN
1.0
CRAP 2.5
« lib/Perlmazing/Feature.pm ↑ Summary lib/Perlmazing/Perlmazing/Precompile/scalar_context.pm »
1 30 ▶use Perlmazing;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 15 ▶sub main ($) {
Subroutine main: called CC=3 SCAR=11.0
4 15 my $x = shift();
5 15 ▶ return 0 unless (defined($x) and length($x));
Branch: 1 branch
BranchTrueFalseTotal
unless defined $x and length $x 6 9 15
Condition100%3/3
defined $x and length $x
!ll&&!rl&&r
339
MC/DC100%2/2
defined $x and length $x
defined $x length $x
Truth table100%3/3
A and B
A= defined $xB= length $x
ABresult
0X0
100
111
6 9 return 1;
7 }
8  
« lib/Perlmazing/Feature.pm ↑ Summary lib/Perlmazing/Perlmazing/Precompile/scalar_context.pm »