Branch Coverage

blib/lib/Array/Window.pm
Criterion Covered Total %
branch 32 62 51.6


line true false branch
42 0 11 if ($options{'source'}) { }
11 0 elsif (defined $options{'source_start'} and defined $options{'source_end'}) { }
0 0 elsif (defined $options{'source_start'} and defined $options{'source_length'}) { }
0 0 elsif (defined $options{'source_end'} and defined $options{'source_length'}) { }
0 0 elsif (defined $options{'source_length'}) { }
43 0 0 unless _ARRAYLIKE($options{'source'})
54 0 0 unless $options{'source_length'} > 0
60 0 0 unless $options{'source_length'} > 0
66 0 0 unless $options{'source_length'} > 0
77 11 0 if (defined $options{'window_start'}) { }
85 9 2 if (defined $options{'window_length'}) { }
2 0 elsif (defined $options{'window_end'}) { }
86 0 9 unless $options{'window_length'} > 0
90 0 2 if $options{'window_end'} < $$self{'window_start'}
110 9 2 unless defined $$self{'window_end'}
111 2 9 unless defined $$self{'window_length'}
114 0 11 if ($$self{'window_start'} < $$self{'source_start'})
119 0 0 if ($$self{'window_end'} > $$self{'source_end'})
124 1 10 if ($$self{'window_end'} > $$self{'source_end'})
129 0 1 if ($$self{'window_start'} < $$self{'source_start'})
136 3 8 if ($$self{'window_end'} == $$self{'source_end'}) { }
143 4 7 if ($$self{'window_start'} == $$self{'source_start'}) { }
147 0 7 if ($$self{'previous_start'} < $$self{'source_start'})
197 1 2 if $$self{'source_start'} == $$self{'window_start'}
215 1 2 if $$self{'source_end'} == $$self{'window_end'}
234 1 2 unless defined $$self{'next_start'}
250 1 2 unless defined $$self{'previous_start'}
266 2 1 unless $$self{'source_start'} == $$self{'window_start'}
267 1 0 unless $$self{'source_end'} == $$self{'window_end'}
281 0 0 unless $$self{'source_start'} == 0
282 0 0 unless $$self{'source_end'} == $#$arrayref