lib/Perlmazing/Perlmazing/no_void.pm

filter: Statementstmt 100% 6 / 6 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 90.9% 10 / 11 CC 2 SCAR 5.1
CC
2
Cov
100%
main
2.0
BEGIN
1.0
CRAP 1.7
« blib/lib/Perlmazing/Perlmazing/weaken.pm ↑ Summary lib/Perlmazing/Perlmazing/Precompile/is_empty.pm »
1 1 ▶use Perlmazing;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 3 ▶sub main {
Subroutine main: called CC=2 SCAR=6.9
Pod undocumented
4 3 my @call = caller(1);
5 3 ▶ if (not defined $call[5]) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $call[5]) 1 2 3
6 1 die "Useless call to $call[3] in void context at $call[1] line $call[2]\n";
7 }
8 }
9  
10 1;
« blib/lib/Perlmazing/Perlmazing/weaken.pm ↑ Summary lib/Perlmazing/Perlmazing/Precompile/is_empty.pm »