Condition Coverage

blib/lib/Games/Baseball/Scorecard.pm
Criterion Covered Total %
condition 22 176 12.5


and 3 conditions

line !l l&&!r l&&r condition
626 0 0 0 $$self{'curr'}{'stats'}{'batter'} and $$self{'curr'}{'stats'}{'batter'} eq $curr_batter
908 0 0 0 /f/i and $s < 2
1242 0 0 0 $base2 == 4 and not $unearned
1244 0 0 0 $label and $label =~ /^SB/i
1729 2 0 14 $direction &&= ".$direction"
1732 2 0 14 $extra &&= " $extra"
1734 0 0 16 defined $y && length $y
1742 0 16 0 defined $string and length $string

or 2 conditions

line l !l condition
185 0 1 $opts ||= {}
187 0 1 $base ||= 'scorecard'
505 0 0 $$stats{'r'} ||= 0
506 0 0 $$stats{'h'} ||= 0
507 0 0 $$stats{'e'} ||= 0
508 0 0 $$stats{'lb'} ||= 0
509 0 0 $$stats{'bb'} ||= 0
510 0 0 $$stats{'k'} ||= 0
511 0 0 $$stats{'strikes'} || 0
512 0 0 $$stats{'pitches'} || 0
525 0 0 $$self{'curr'}{'stats'}{'innings'}{$inn} ||= {}
553 0 0 $$self{'curr'}{'stats'}{'batters'}{$$self{'curr'}{'lineup'}[$$self{'curr'}{'ab'}][-1][0]} ||= {}
600 0 0 $$self{'curr'}{'inn'} || 1
602 0 0 $$self{'curr'}{'lineup'} ||= []
603 0 0 $$self{'curr'}{'lineupx'} ||= {}
623 0 0 $$self{'curr'}{'stats'}{'batters'}{$$lineup[$order][-1][0]} ||= {}
629 0 0 $$self{'curr'}{'stats'}{'batters'}{$number} ||= {}
676 0 0 $$self{'curr'}{'inn'} || 1
679 0 0 $$self{'other'}{'stats'}{'pitchers'}{$number} ||= {}
681 0 0 $$self{'other'}{'plineup'} ||= []
947 0 0 $$self{'curr'}{'stats'}{'pitcher'} ||= {}
948 0 0 $$self{'curr'}{'stats'}{'inning'} ||= {}
984 0 0 $where ||= ''
1061 0 0 $bases ||= 1
1193 0 0 $self->base || 0
1276 0 0 $rbis ||= 1
1500 0 0 $$innings{$_}{$n} ||= 0
1520 0 0 $$bstats{$_} ||= 0
1555 0 0 ($$kstats{'outs'} ||= 0) % 3 || 0
1559 0 0 $$kstats{'bf'} || 0
1560 0 0 $$kstats{'ip'} || 0
1562 0 0 $$kstats{'h'} || 0
1563 0 0 $$kstats{'r'} || 0
1564 0 0 $$kstats{'er'} || 0
1566 0 0 $$kstats{'bb'} || 0
1567 0 0 $$kstats{'k'} || 0
1568 0 0 $$kstats{'ibb'} || 0
1570 0 0 $$kstats{'hp'} || 0
1571 0 0 $$kstats{'bk'} || 0
1572 0 0 $$kstats{'wp'} || 0
1574 0 0 $$kstats{'4'} || 0
1575 0 0 $$kstats{'strikes'} || 0
1576 0 0 $$kstats{'pitches'} || 0
1585 0 0 $$game{'1'} || 0
1586 0 0 $$game{'2'} || 0
1587 0 0 $$game{'3'} || 0
1588 0 0 $$game{'4'} || 0
1589 0 0 $$game{'sf'} || 0
1590 0 0 $$game{'sac'} || 0
1593 0 0 $$game{'dp'} || 0
1594 0 0 $$game{'hp'} || 0
1595 0 0 $$game{'wp'} || 0
1596 0 0 $$game{'pb'} || 0
1597 0 0 $$game{'sb'} || 0
1598 0 0 $$game{'cs'} || 0
1728 14 2 $direction ||= ''
1731 14 2 $extra ||= ''
1741 0 16 $font ||= 'bigsf'

or 3 conditions

line l !l&&r !l&&!r condition
186 1 0 0 $dir ||= tempdir()
218 1 1 0 $$opts{'fonts'}[0] ||= $FONTS[0]
219 1 1 0 $$opts{'fonts'}[1] ||= $FONTS[1]
220 1 1 0 $$opts{'fonts'}[2] ||= $FONTS[2]
221 1 1 0 $$opts{'fonts'}[3] ||= $FONTS[3]
600 0 0 0 $inn ||= $$self{'curr'}{'inn'} || 1
642 0 0 0 not $rep2 or $rep2 <= 6
676 0 0 0 $inn ||= $$self{'curr'}{'inn'} || 1
826 0 0 0 $init{$1} ||= $$data{'teams'}{$w[1]}
908 0 0 0 /s/i or /f/i and $s < 2
1394 0 0 0 $base ||= $self->base + 1
1415 0 0 0 $base ||= $self->base