Condition Coverage

blib/lib/Game/TextMapper/Traveller.pm
Criterion Covered Total %
condition 105 120 87.5


and 3 conditions

line !l l&&!r l&&r condition
120 0 17 24 $population >= 1 and $population <= 5
142 8 30 3 $atmosphere >= 2 and $hydro == 0
145 10 30 1 $hydro >= 1 and $atmosphere <= 1
148 10 26 5 $hydro >= 1 and $atmosphere >= 10
152 41 0 0 $population eq 0 and $law eq 0
41 0 0 $population eq 0 and $law eq 0 and $government eq 0
156 0 32 9 $population >= 1 and $population <= 3
160 12 5 24 $atmosphere >= 4 and $atmosphere <= 9
17 5 19 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4
10 1 18 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8
6 9 9 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8 and $population >= 5
10 2 7 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8 and $population >= 5 and $population <= 7
164 29 1 11 $atmosphere <= 3 and $hydro <= 3
30 6 5 $atmosphere <= 3 and $hydro <= 3 and $population >= 6
169 23 16 2 &any(sub { $atmosphere == $_; } , 0, 1, 2, 4, 7, 9) and $population >= 9
173 17 6 18 $government >= 4 and $government <= 9
23 14 4 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8
14 0 4 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8 and $population >= 6
14 1 3 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8 and $population >= 6 and $population <= 8
177 8 23 10 $atmosphere >= 2 and $atmosphere <= 5
31 5 5 $atmosphere >= 2 and $atmosphere <= 5 and $hydro <= 3
188 1 35 5 not $pirate_base and $atmosphere >= 10 || $population && $government == 0 || $population && $law == 0 || $government == 7 || $government == 10 || $law >= 9
279 676 128 16 $d <= 2 and match(qr/^(starport-[AB]|naval)$/u, qr/^(starport-[AB]|naval)$/u, $system1, $system2)
282 676 144 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 571 232 17 $d <= 3 and match(qr/^rich$/u, qr/^(asteroid|agriculture|desert|high|industrial|non-agriculture|water|rich|low)$/u, $system1, $system2)
343 1643 170 38 &any(sub { /$re1/u; } , @$sys1) and &any(sub { /$re2/u; } , @$sys2)
344 1341 437 35 &any(sub { /$re2/u; } , @$sys1) and &any(sub { /$re1/u; } , @$sys2)
364 27 13 33 $C{$u} && $C{$v}
368 27 13 9 $C{$u} and $C{$v}
27 0 13 $C{$v} and not $C{$u}
14 0 13 $C{$u} and not $C{$v}

or 3 conditions

line l !l&&r !l&&!r condition
74 8 5 28 $atmosphere < 2 or $atmosphere >= 10
75 8 0 33 $hydro < 0 or $size < 2
117 12 5 24 $atmosphere <= 3 or $atmosphere >= 10
123 3 5 33 $government == 0 or $government == 5
173 1 3 14 $atmosphere == 6 || $atmosphere == 8
188 4 5 21 $atmosphere >= 10 || $population && $government == 0 || $population && $law == 0 || $government == 7 || $government == 10 || $law >= 9
282 0 0 104 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 40 9 24 not $C{$u} && $C{$v} or $C{$u} != $C{$v}
368 0 0 14 $C{$u} || $C{$v}