Branch Coverage

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


line true false branch
14 1 23 unless scalar @{$self->{'parameter'};}
26 1 25 unless defined $settings
31 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') { }
33 11 1 if (defined $value) { }
38 1 10 if $@
51 0 11 if $@
108 12 10 if ($settings =~ /^([-\d]+)?\:([-\d]+)?$/) { }
9 1 elsif ($settings =~ /^([-\d]+)?\s*\.\.\s*([-\d]+)?$/) { }
111 7 5 defined $2 ? :
128 0 21 if $start > $last_index
129 3 18 if $end > $last_index
131 0 21 if ($start > $end)
144 5 14 unless defined $pyvalue
146 1 13 $pyvalue < 0 ? :