Condition Coverage

lib/Traveller/System.pm
Criterion Covered Total %
condition 179 186 96.2


and 3 conditions

line !l l&&!r l&&r condition
145 7 545 127 $self->atmosphere != 13 and $self->temperature >= 10
552 41 86 $self->atmosphere != 13 and $self->temperature >= 10 and $self->temperature <= 11
149 7 631 41 $self->atmosphere != 13 and $self->temperature >= 12
185 61 393 225 $self->size >= 2 and $self->size <= 4
189 12 318 349 $self->population >= 1 and $self->population <= 5
205 562 92 25 $self->atmosphere <= 1 and $self->tech < 8
206 442 223 14 $self->atmosphere <= 3 and $self->tech < 5
207 510 154 15 $self->atmosphere == 4 || $self->atmosphere == 7 || $self->atmosphere == 9 and $self->tech < 3
210 646 21 12 $self->atmosphere == 10 and $self->tech < 8
211 656 11 12 $self->atmosphere == 11 and $self->tech < 9
212 672 2 5 $self->atmosphere == 12 and $self->tech < 10
213 672 7 0 $self->atmosphere == 13 and $self->atmosphere == 14
679 0 0 $self->atmosphere == 13 and $self->atmosphere == 14 and $self->tech < 5
215 678 1 0 $self->atmosphere == 15 and $self->tech < 8
227 237 75 367 $self->atmosphere >= 4 and $self->atmosphere <= 9
312 99 268 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4
174 68 200 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8
167 61 139 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8 and $self->population >= 5
129 42 97 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8 and $self->population >= 5 and $self->population <= 7
230 653 14 12 $self->size == 0 and $self->atmosphere == 0
667 0 12 $self->size == 0 and $self->atmosphere == 0 and $self->hydro == 0
231 593 0 86 $self->population == 0 and $self->government == 0
593 0 86 $self->population == 0 and $self->government == 0 and $self->law == 0
232 117 472 90 $self->atmosphere >= 2 and $self->hydro == 0
233 604 29 46 $self->atmosphere >= 10 and $self->hydro >= 1
234 286 53 340 $self->size >= 5 and $self->atmosphere >= 4
339 75 265 $self->size >= 5 and $self->atmosphere >= 4 and $self->atmosphere <= 9
128 48 217 $self->size >= 5 and $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4
123 65 152 $self->size >= 5 and $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8
239 562 93 24 $self->atmosphere <= 1 and $self->hydro >= 1
240 619 31 29 $self->population >= 9 and &any(sub { $_ == $self->atmosphere; } , 0, 1, 2, 4, 7, 9)
241 86 458 135 $self->population >= 1 and $self->population <= 3
242 86 470 123 $self->tech >= 1 and $self->tech <= 5
243 442 60 177 $self->atmosphere <= 3 and $self->hydro <= 3
502 113 64 $self->atmosphere <= 3 and $self->hydro <= 3 and $self->population >= 6
244 221 185 273 $self->population >= 4 and $self->population <= 6
245 117 295 267 $self->atmosphere >= 2 and $self->atmosphere <= 5
412 155 112 $self->atmosphere >= 2 and $self->atmosphere <= 5 and $self->hydro <= 3
246 400 60 219 $self->population >= 6 and $self->population <= 8
460 174 45 $self->population >= 6 and $self->population <= 8 and &any(sub { $_ == $self->atmosphere; } , 6, 8)
256 86 549 44 $self->population and $self->government == 0
259 86 528 65 $self->population and $self->law == 0
261 358 299 22 $danger and $self->pirate

or 3 conditions

line l !l&&r !l&&!r condition
116 59 61 559 $atmosphere == 2 or $atmosphere == 3
119 61 72 546 $atmosphere == 3 or $atmosphere == 4
133 4 542 $atmosphere == 3 or $atmosphere == 4 or $atmosphere == 14
123 49 33 597 $atmosphere == 8 or $atmosphere == 9
126 33 7 639 $atmosphere == 10 or $atmosphere == 13
40 1 638 $atmosphere == 10 or $atmosphere == 13 or $atmosphere == 15
130 23 7 649 $atmosphere == 11 or $atmosphere == 12
139 77 40 562 $self->atmosphere == 0 or $self->atmosphere == 1
117 33 529 $self->atmosphere == 0 or $self->atmosphere == 1 or $self->atmosphere == 10
73 23 506 $self->atmosphere == 0 or $self->atmosphere == 1 or $self->atmosphere == 10 or $self->atmosphere == 11
56 7 499 $self->atmosphere == 0 or $self->atmosphere == 1 or $self->atmosphere == 10 or $self->atmosphere == 11 or $self->atmosphere == 12
152 61 87 531 $self->size <= 1 or $hydro < 0
162 30 7 642 $government < 0 or $self->population == 0
171 52 5 622 $law < 0 or $self->population == 0
186 237 75 367 $self->atmosphere <= 3 or $self->atmosphere >= 10
187 183 36 460 $self->hydro == 0 or $self->hydro == 9
194 61 81 537 $self->government == 0 or $self->government == 5
196 6 2 671 $self->government == 13 or $self->government == 14
207 136 33 510 $self->atmosphere == 4 || $self->atmosphere == 7 || $self->atmosphere == 9