Branch Coverage

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


line true false branch
36 2 8 if (exists $options{'clip'}) { }
7 1 elsif (exists $options{'rect'}) { }
1 0 elsif (exists $options{'width'} and $options{'height'}) { }
48 1 9 exists $options{'step_x'} ? :
49 1 9 exists $options{'step_y'} ? :
50 2 8 exists $options{'clip'} ? :
51 2 8 exists $options{'clip'} ? :
53 1 9 exists $options{'max_loops'} ? :
54 0 10 exists $options{'ticks_per_frame'} ? :
55 2 8 exists $options{'type'} ? :
57 1 9 if (exists $options{'sequences'}) { }
62 1 9 if exists $options{'sequence'}
127 13 0 if exists $_width{refaddr $self}
128 13 0 if exists $_height{refaddr $self}
129 13 0 if exists $_width{refaddr $self}
130 13 0 if exists $_height{refaddr $self}
136 10 10 if ($step_y)
146 10 10 if ($step_x)
156 10 0 if ($type)
166 10 0 if (@_)
176 10 0 if ($ticks)
206 18 0 if ($sequence)
208 0 18 unless (defined $_sequences{$me}{$sequence})
236 0 43 if @{$self->_sequence;} == 1
238 1 42 if $_max_loops{$me} and $_current_loop{$me} > $_max_loops{$me}
242 10 32 if ($next_frame == 0)
243 7 3 if $_type{$me} eq 'circular'
245 3 7 if ($_type{$me} eq 'reverse')
247 2 1 if ($_direction{$me} == 1) { }
266 0 11 if $_max_loops{refaddr $self} and $_current_loop{refaddr $self} > $_max_loops{refaddr $self}
270 0 11 if @{$self->_sequence;} == 1
274 5 6 if ($previous_frame == 0)
275 3 2 if ($_type{refaddr $self} eq 'reverse')
277 1 2 if ($_direction{refaddr $self} == -1)
340 0 0 if $_started{refaddr $self} and $_ticks{refaddr $self} % $_ticks_per_frame{refaddr $self} == 0