Branch Coverage

blib/lib/DTL/Fast/Filter/Slice.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
16 1 23 unless scalar @{$self->{'parameter'};}
28 1 25 unless defined $settings
33 12 13 if (not defined $value_type) { }
11 2 elsif ($value_type eq 'ARRAY') { }
1 1 elsif ($value_type eq 'HASH') { }
0 1 elsif ($value_type eq 'SCALAR') { }
35 11 1 if (defined $value) { }
40 1 10 if $@
53 0 11 if $@
110 12 10 if ($settings =~ /^([-\d]+)?\:([-\d]+)?$/) { }
9 1 elsif ($settings =~ /^([-\d]+)?\s*\.\.\s*([-\d]+)?$/) { }
113 7 5 defined $2 ? :
130 0 21 if $start > $last_index
131 3 18 if $end > $last_index
133 0 21 if ($start > $end)
146 5 14 unless defined $pyvalue
148 1 13 $pyvalue < 0 ? :