Condition Coverage

blib/lib/Game/CharacterSheetGenerator.pm
Criterion Covered Total %
condition 81 112 72.3


and 3 conditions

line !l l&&!r l&&r condition
340 432 18732 18317 $translation->{$en} and $lang eq "de"
515 22 1 43 $char->{$id} and not defined $$char{"$id-bonus"}
519 4 0 7 $char->{'cha'} and not defined $char->{'reaction'}
528 4 0 7 $char->{'thac0'} and not defined $char->{'melee-thac0'}
531 4 0 7 $char->{'thac0'} and not defined $char->{'range-thac0'}
534 4 0 7 $char->{'thac0'} and not defined $char->{'other-thac0'}
819 69 9 3 good($str) and $hp > 6
78 3 0 good($str) and $hp > 6 and not $shield
880 178 37 89 $class eq T('fighter') || $class eq T('elf') and average($dex)
1508 82 177 43 average($con) and $best eq "str"
68 116 75 average($int) and good($str, $dex)
184 30 45 average($int) and good($str, $dex) and d6() > 2
150 23 41 average($str, $dex, $con) == 3 and good($str, $dex, $con)
173 15 26 average($str, $dex, $con) == 3 and good($str, $dex, $con) and d6() > 2
55 106 27 average($str, $dex, $con) >= 2 and $best eq 'str' || $best eq 'con'

or 2 conditions

line l !l condition
353 9 4 $char->{'charsheet'} || 'Charactersheet.svg'
450 143 12 $char->{$key} || ''

or 3 conditions

line l !l&&r !l&&!r condition
395 0 0 480 $tag eq "strong" or $tag eq "b"
0 0 480 $tag eq "em" or $tag eq "i"
569 0 0 304 $class eq T("hireling") or $class eq T("porter")
580 0 1 304 $xp or $level > 1
1 0 304 $xp or $level > 1 or not $class
865 43 0 261 $class eq T("dwarf") or member(T("battle axe"), @property)
880 81 45 178 $class eq T('fighter') || $class eq T('elf')
950 0 0 7 $class eq T("dwarf") or $class eq T("halfling")
1053 4928 0 4 not defined $char->{$key} or $char->{$key} eq ""
1470 0 0 305 $class eq T('hireling') || $class eq T('porter')
1497 0 0 305 $class eq T("hireling") or $class eq T("porter")
1508 9 24 100 $best eq 'str' || $best eq 'con'
33 11 144 average($str, $dex, $con) >= 2 and $best eq 'str' || $best eq 'con' or good($str, $dex, $con) >= 2
1552 81 43 181 $class eq T("fighter") or $class eq T("dwarf")
45 26 110 $class eq T("elf") or $class eq T("halfling")
1566 67 45 193 $class eq T("magic-user") or $class eq T("elf")
1573 0 0 305 $class eq T("hireling") or $class eq T("porter")
1635 0 0 0 $char->{'class'} eq T("elf") or $char->{'race'} eq T("elf")
0 0 0 $char->{'class'} eq T("dwarf") or $char->{'race'} eq T("dwarf")
1699 0 32 108 /starting gold:/u or /gold$/u
1700 0 36 72 /Startgold:/u or /Gold$/u