Branch Coverage

blib/lib/Math/Series.pm
Criterion Covered Total %
branch 37 50 74.0


line true false branch
170 0 18 if @_ % 2
176 0 18 unless defined $formula
180 0 18 unless defined $parsed
183 0 18 unless defined $start
187 0 18 unless defined $start
190 12 6 unless defined $variable
193 9 9 unless defined $iter_var
196 12 6 if exists $args{'cached'}
200 3 15 unless defined $start_index
230 18 354 if ($$self{'cached'} and defined $$self{'cache'}[$next_index - $start_index])
248 54 300 if $$self{'cached'}
285 42 192 if (@_ and defined $_[0]) { }
287 18 24 if $index < $$self{'start_index'}
310 0 120 unless defined $index
313 12 108 if $index < $start_index
315 24 84 if $$self{'cached'} and defined $$self{'cache'}[$index - $start_index]
319 6 78 if ($$self{'cached'}) { }
320 6 0 if ($index - $start_index > $#{$$self{'cache'};}) { }
330 0 0 if defined $$self{'cache'}[$index - $start_index]
338 0 0 if $last_defined < $start_index
352 0 78 if $index == $$self{'current'}
356 60 18 if ($index < $$self{'current'}) { }
391 12 96 if $prev_index < $start_index
393 0 48 if not $$self{'cached'} and $warnings
397 48 48 if ($$self{'cached'} and defined $$self{'cache'}[$prev_index - $start_index])