lib/Perlmazing/Perlmazing/Precompile/is_integer.pm

filter: Statementstmt 50.0% 3 / 6 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod n/a totaltotal 33.3% 4 / 12 CC 3 SCAR 22.2
CC
3
Cov
30%
main
12.0
BEGIN
1.0
CRAP 9.2
« lib/Perlmazing/Perlmazing/Precompile/decimals.pm ↑ Summary blib/lib/Perlmazing/Perlmazing/splitdir.pm »
1 30 ▶use Perlmazing qw(is_number);
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 0 ▶sub main ($) {
Subroutine main: not called CC=3 SCAR=24.8
4 0 ▶ return unless is_number $_[0];
Branch: 1 branch
BranchTrueFalseTotal
unless &is_number($_[0]) 0 0 0
5 0 ▶ return unless int($_[0]) == $_[0];
Branch: 1 branch
BranchTrueFalseTotal
unless int $_[0] == $_[0] 0 0 0
6 0 1;
7 }
8  
9 1;
« lib/Perlmazing/Perlmazing/Precompile/decimals.pm ↑ Summary blib/lib/Perlmazing/Perlmazing/splitdir.pm »