Branch Coverage

blib/lib/SDLx/Sprite/Animated.pm
Criterion Covered Total %
branch 54 70 77.1


line true false branch
38 2 8 if (exists $options{'clip'}) { }
7 1 elsif (exists $options{'rect'}) { }
1 0 elsif (exists $options{'width'} and $options{'height'}) { }
50 1 9 exists $options{'step_x'} ? :
51 1 9 exists $options{'step_y'} ? :
52 2 8 exists $options{'clip'} ? :
53 2 8 exists $options{'clip'} ? :
55 1 9 exists $options{'max_loops'} ? :
56 0 10 exists $options{'ticks_per_frame'} ? :
57 2 8 exists $options{'type'} ? :
59 1 9 if (exists $options{'sequences'}) { }
64 1 9 if exists $options{'sequence'}
129 13 0 if exists $_width{&refaddr($self)}
130 13 0 if exists $_height{&refaddr($self)}
131 13 0 if exists $_width{&refaddr($self)}
132 13 0 if exists $_height{&refaddr($self)}
138 10 10 if ($step_y)
148 10 10 if ($step_x)
158 10 0 if ($type)
168 10 0 if (@_)
178 10 0 if ($ticks)
208 18 0 if ($sequence)
210 0 18 unless (defined $_sequences{$me}{$sequence})
238 0 43 if @{$self->_sequence;} == 1
240 1 42 if $_max_loops{$me} and $_current_loop{$me} > $_max_loops{$me}
244 10 32 if ($next_frame == 0)
245 7 3 if $_type{$me} eq 'circular'
247 3 7 if ($_type{$me} eq 'reverse')
249 2 1 if ($_direction{$me} == 1) { }
268 0 11 if $_max_loops{&refaddr($self)} and $_current_loop{&refaddr($self)} > $_max_loops{&refaddr($self)}
272 0 11 if @{$self->_sequence;} == 1
276 5 6 if ($previous_frame == 0)
277 3 2 if ($_type{&refaddr($self)} eq 'reverse')
279 1 2 if ($_direction{&refaddr($self)} == -1)
342 0 0 if $_started{&refaddr($self)} and $_ticks{&refaddr($self)} % $_ticks_per_frame{&refaddr($self)} == 0