blib/lib/Class/MakeMethods/Utility/ArraySplicer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 27 | 25.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
134 | 3 | 0 | 5 | scalar @_ == 1 and length $_[0] |
3 | 0 | 5 | scalar @_ == 1 and length $_[0] and not ref $_[0] | |
0 | 0 | 5 | scalar @_ == 1 and length $_[0] and not ref $_[0] and not $_[0] =~ /\D/ | |
3 | 0 | 0 | scalar @_ == 1 and ref $_[0] eq 'ARRAY' | |
0 | 0 | 0 | !scalar(@_) == 2 and not defined $_[0] | |
0 | 0 | 0 | !scalar(@_) == 2 and not defined $_[0] and ref $_[1] eq 'ARRAY' | |
0 | 0 | 0 | !scalar(@_) % 2 and ref $_[0] eq 'ARRAY' | |
190 | 0 | 0 | 0 | !wantarray && scalar @results == 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
134 | 0 | 0 | 3 | scalar(@_) % 2 || grep({not length $_ && !ref($_) && !($_ =~ /\D/);} map({$_[$_];} grep({not $_ % 2;} 0 .. $#_))) |