Branch Coverage

blib/lib/Games/Console.pm
Criterion Covered Total %
branch 30 76 39.4


line true false branch
25 1 0 unless ref $args eq 'HASH'
40 0 1 if $$self{'width'} > 100
41 0 1 if $$self{'height'} > 100
80 0 0 if $$self{'visible'}
96 0 0 if (not $$self{'visible'}) { }
103 0 0 if $$self{'direction'} == 0
114 0 0 if (@_ > 0)
116 0 0 $_[0] ? :
117 0 0 if ($$self{'visible'} and not $v) { }
0 0 elsif (not $$self{'visible'} and $v) { }
137 0 0 unless $$self{'visible'}
139 0 0 if ($$self{'direction'} != 0)
146 0 0 if ($$self{'cur_percent'} < 0)
156 0 0 if ($$self{'cur_percent'} > 100)
196 0 0 if (@_ > 0)
208 0 0 if (@_ > 0)
220 0 0 if @_ > 0
228 0 1 if @_ > 0
236 0 1 if @_ > 0
244 0 0 if @_ > 0
252 4 1 if (@_ > 0)
255 2 2 if $$self{'width'} > 100
264 3 1 if (@_ > 0)
267 2 1 if $$self{'height'} > 100
276 3 1 if (@_ > 0)
279 2 1 if $$self{'speed'} > 100
288 0 0 if @_ > 0
296 1 1 if @_ > 0
304 1 1 if @_ > 0
312 3 1 if ($$self{'current_input'} ne '')
331 5 0 if (@_ > 0)
351 0 1 if ($pos < 0 or $pos >= scalar @$m) { }
357 1 0 if scalar @$m > 0
359 1 0 if ($dir >= 0) { }
361 1 0 if $pos < scalar @$m
365 0 0 if $pos >= 0
385 0 1 if $$self{'offset'} < 0
387 1 0 if $$self{'offset'} >= scalar @{$$self{'messages'};}