Condition Coverage

blib/lib/Game/TextMapper/Traveller.pm
Criterion Covered Total %
condition 107 120 89.1


and 3 conditions

line !l l&&!r l&&r condition
120 1 18 18 $population >= 1 and $population <= 5
142 7 28 2 $atmosphere >= 2 and $hydro == 0
145 9 28 0 $hydro >= 1 and $atmosphere <= 1
148 9 27 1 $hydro >= 1 and $atmosphere >= 10
152 36 1 0 $population eq 0 and $law eq 0
37 0 0 $population eq 0 and $law eq 0 and $government eq 0
156 1 26 10 $population >= 1 and $population <= 3
160 12 1 24 $atmosphere >= 4 and $atmosphere <= 9
13 5 19 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4
6 7 12 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8
12 7 5 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8 and $population >= 5
14 1 4 $atmosphere >= 4 and $atmosphere <= 9 and $hydro >= 4 and $hydro <= 8 and $population >= 5 and $population <= 7
164 25 1 11 $atmosphere <= 3 and $hydro <= 3
26 3 8 $atmosphere <= 3 and $hydro <= 3 and $population >= 6
169 13 24 0 &any(sub { $atmosphere == $_; } , 0, 1, 2, 4, 7, 9) and $population >= 9
173 16 3 18 $government >= 4 and $government <= 9
19 15 3 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8
15 1 2 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8 and $population >= 6
16 0 2 $government >= 4 and $government <= 9 and $atmosphere == 6 || $atmosphere == 8 and $population >= 6 and $population <= 8
177 7 17 13 $atmosphere >= 2 and $atmosphere <= 5
24 6 7 $atmosphere >= 2 and $atmosphere <= 5 and $hydro <= 3
188 0 29 8 not $pirate_base and $atmosphere >= 10 || $population && $government == 0 || $population && $law == 0 || $government == 7 || $government == 10 || $law >= 9
279 482 73 40 $d <= 2 and match(qr/^(starport-[AB]|naval)$/u, qr/^(starport-[AB]|naval)$/u, $system1, $system2)
282 482 113 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 393 193 9 $d <= 3 and match(qr/^rich$/u, qr/^(asteroid|agriculture|desert|high|industrial|non-agriculture|water|rich|low)$/u, $system1, $system2)
343 1355 165 50 &any(sub { /$re1/u; } , @$sys1) and &any(sub { /$re2/u; } , @$sys2)
344 1094 407 19 &any(sub { /$re2/u; } , @$sys1) and &any(sub { /$re1/u; } , @$sys2)
364 18 16 35 $C{$u} && $C{$v}
368 18 16 6 $C{$u} and $C{$v}
29 0 5 $C{$v} and not $C{$u}
13 0 16 $C{$u} and not $C{$v}

or 3 conditions

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