Condition Coverage

blib/lib/Game/TextMapper/Traveller.pm
Criterion Covered Total %
condition 112 120 93.3


and 3 conditions

line !l l&&!r l&&r condition
120 5 32 40 $population >= 1 and $population <= 5
142 18 53 6 $atmosphere >= 2 and $hydro == 0
145 24 53 0 $hydro >= 1 and $atmosphere <= 1
148 24 48 5 $hydro >= 1 and $atmosphere >= 10
152 72 1 4 $population eq 0 and $law eq 0
73 2 2 $population eq 0 and $law eq 0 and $government eq 0
156 5 47 25 $population >= 1 and $population <= 3
160 31 5 41 $atmosphere >= 4 and $atmosphere <= 9
36 5 36 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4
10 10 26 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8
15 15 11 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8 and $population >= 5
25 4 7 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8 and $population >= 5 and $population <= 7
164 46 3 28 $atmosphere <= 3 and $hydro <= 3
49 17 11 $atmosphere <= 3 and $hydro <= 3 and $population >= 6
169 30 39 8 &any(sub { $atmosphere == $_; } , 0, 1, 2, 4, 7, 9) and $population >= 9
173 25 7 45 $government >= 4 and $government <= 9
32 39 6 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8
39 4 2 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8 and $population >= 6
43 1 1 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8 and $population >= 6 and $population <= 8
177 18 30 29 $atmosphere >= 2 and $atmosphere <= 5
48 14 15 $atmosphere >= 2 and $atmosphere <= 5 and $hydro <= 3
188 0 69 8 not $pirate_base and $atmosphere >= 10 || $population && $government == 0 || $population && $law == 0 || $government == 7 || $government == 10 || $law >= 9
279 1084 221 43 $d <= 2 and match(qr/^(starport-[AB]|naval)$/u, qr/^(starport-[AB]|naval)$/u, $system1, $system2)
282 1084 264 0 $d <= 2 and match(qr/^agriculture$/u, qr/^(agriculture|astroid|desert|high|industrial|low|non-agriculture|rich)$/u, $system1, $system2) || match(qr/^asteroid$/u, qr/^(asteroid|industrial|non-agriculture|rich|vacuum)$/u, $system1, $system2) || match(qr/^desert$/u, qr/^(desert|non-agriculture)$/u, $system1, $system2) || match(qr/^fluid$/u, qr/^(fluid|industrial)$/u, $system1, $system2) || match(qr/^high$/u, qr/^(high|low|rich)$/u, $system1, $system2) || match(qr/^ice$/u, qr/^industrial$/u, $system1, $system2) || match(qr/^industrial$/u, qr/^(agriculture|astroid|desert|fluid|high|industrial|non-industrial|poor|rich|vacuum|water)$/u, $system1, $system2) || match(qr/^low$/u, qr/^(industrial|rich)$/u, $system1, $system2) || match(qr/^non-agriculture$/u, qr/^(asteroid|desert|vacuum)$/u, $system1, $system2) || match(qr/^non-industrial$/u, qr/^industrial$/u, $system1, $system2) || match(qr/^rich$/u, qr/^(agriculture|desert|high|industrial|non-agriculture|rich)$/u, $system1, $system2) || match(qr/^vacuum$/u, qr/^(asteroid|industrial|vacuum)$/u, $system1, $system2) || match(qr/^water$/u, qr/^(industrial|rich|water)$/u, $system1, $system2)
326 855 484 9 $d <= 3 and match(qr/^rich$/u, qr/^(asteroid|agriculture|desert|high|industrial|non-agriculture|water|rich|low)$/u, $system1, $system2)
343 2915 384 103 &any(sub { /$re1/u; } , @$sys1) and &any(sub { /$re2/u; } , @$sys2)
344 2152 1110 37 &any(sub { /$re2/u; } , @$sys1) and &any(sub { /$re1/u; } , @$sys2)
364 38 35 67 $C{$u} && $C{$v}
368 38 35 17 $C{$u} and $C{$v}
60 0 13 $C{$v} and not $C{$u}
25 0 35 $C{$u} and not $C{$v}

or 3 conditions

line l !l&&r !l&&!r condition
74 18 5 54 $atmosphere < 2 or $atmosphere >= 10
75 17 2 58 $hydro < 0 or $size < 2
117 31 5 41 $atmosphere <= 3 or $atmosphere >= 10
123 10 5 62 $government == 0 or $government == 5
173 4 2 39 $atmosphere == 6 || $atmosphere == 8
188 10 6 47 $atmosphere >= 10 || $population && $government == 0 || $population && $law == 0 || $government == 7 || $government == 10 || $law >= 9
282 1 0 176 match(qr/^agriculture$/u, qr/^(agriculture|astroid|desert|high|industrial|low|non-agriculture|rich)$/u, $system1, $system2) || match(qr/^asteroid$/u, qr/^(asteroid|industrial|non-agriculture|rich|vacuum)$/u, $system1, $system2) || match(qr/^desert$/u, qr/^(desert|non-agriculture)$/u, $system1, $system2) || match(qr/^fluid$/u, qr/^(fluid|industrial)$/u, $system1, $system2) || match(qr/^high$/u, qr/^(high|low|rich)$/u, $system1, $system2) || match(qr/^ice$/u, qr/^industrial$/u, $system1, $system2) || match(qr/^industrial$/u, qr/^(agriculture|astroid|desert|fluid|high|industrial|non-industrial|poor|rich|vacuum|water)$/u, $system1, $system2) || match(qr/^low$/u, qr/^(industrial|rich)$/u, $system1, $system2) || match(qr/^non-agriculture$/u, qr/^(asteroid|desert|vacuum)$/u, $system1, $system2) || match(qr/^non-industrial$/u, qr/^industrial$/u, $system1, $system2) || match(qr/^rich$/u, qr/^(agriculture|desert|high|industrial|non-agriculture|rich)$/u, $system1, $system2) || match(qr/^vacuum$/u, qr/^(asteroid|industrial|vacuum)$/u, $system1, $system2) || match(qr/^water$/u, qr/^(industrial|rich|water)$/u, $system1, $system2)
364 73 17 50 not $C{$u} && $C{$v} or $C{$u} != $C{$v}
368 0 0 25 $C{$u} || $C{$v}