Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
145 7 1065 211 $self->atmosphere != 13 and $self->temperature >= 10
1072 64 147 $self->atmosphere != 13 and $self->temperature >= 10 and $self->temperature <= 11
149 7 1212 64 $self->atmosphere != 13 and $self->temperature >= 12
185 108 728 447 $self->size >= 2 and $self->size <= 4
189 47 504 732 $self->population >= 1 and $self->population <= 5
205 1077 149 57 $self->atmosphere <= 1 and $self->tech < 8
206 827 407 49 $self->atmosphere <= 3 and $self->tech < 5
207 949 299 35 $self->atmosphere == 4 || $self->atmosphere == 7 || $self->atmosphere == 9 and $self->tech < 3
210 1227 29 27 $self->atmosphere == 10 and $self->tech < 8
211 1260 11 12 $self->atmosphere == 11 and $self->tech < 9
212 1266 3 14 $self->atmosphere == 12 and $self->tech < 10
213 1276 7 0 $self->atmosphere == 13 and $self->atmosphere == 14
1283 0 0 $self->atmosphere == 13 and $self->atmosphere == 14 and $self->tech < 5
215 1281 2 0 $self->atmosphere == 15 and $self->tech < 8
227 456 110 717 $self->atmosphere >= 4 and $self->atmosphere <= 9
566 219 498 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4
329 114 384 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8
333 187 197 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8 and $self->population >= 5
301 71 126 $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8 and $self->population >= 5 and $self->population <= 7
230 1242 12 29 $self->size == 0 and $self->atmosphere == 0
1254 0 29 $self->size == 0 and $self->atmosphere == 0 and $self->hydro == 0
231 1090 0 193 $self->population == 0 and $self->government == 0
1090 0 193 $self->population == 0 and $self->government == 0 and $self->law == 0
232 206 917 160 $self->atmosphere >= 2 and $self->hydro == 0
233 1173 50 60 $self->atmosphere >= 10 and $self->hydro >= 1
234 555 103 625 $self->size >= 5 and $self->atmosphere >= 4
658 110 515 $self->size >= 5 and $self->atmosphere >= 4 and $self->atmosphere <= 9
213 102 413 $self->size >= 5 and $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4
212 112 301 $self->size >= 5 and $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8
239 1077 174 32 $self->atmosphere <= 1 and $self->hydro >= 1
240 1190 47 46 $self->population >= 9 and &any(sub { $_ == $self->atmosphere; } , 0, 1, 2, 4, 7, 9)
241 193 778 312 $self->population >= 1 and $self->population <= 3
242 198 867 218 $self->tech >= 1 and $self->tech <= 5
243 827 149 307 $self->atmosphere <= 3 and $self->hydro <= 3
976 220 87 $self->atmosphere <= 3 and $self->hydro <= 3 and $self->population >= 6
244 505 288 490 $self->population >= 4 and $self->population <= 6
245 206 524 553 $self->atmosphere >= 2 and $self->atmosphere <= 5
730 327 226 $self->atmosphere >= 2 and $self->atmosphere <= 5 and $self->hydro <= 3
246 855 93 335 $self->population >= 6 and $self->population <= 8
948 271 64 $self->population >= 6 and $self->population <= 8 and &any(sub { $_ == $self->atmosphere; } , 6, 8)
256 193 978 112 $self->population and $self->government == 0
259 193 949 141 $self->population and $self->law == 0
261 682 563 38 $danger and $self->pirate

or 3 conditions

line l !l&&r !l&&!r condition
116 107 143 1033 $atmosphere == 2 or $atmosphere == 3
119 143 146 994 $atmosphere == 3 or $atmosphere == 4
289 5 989 $atmosphere == 3 or $atmosphere == 4 or $atmosphere == 14
123 98 78 1107 $atmosphere == 8 or $atmosphere == 9
126 56 7 1220 $atmosphere == 10 or $atmosphere == 13
63 2 1218 $atmosphere == 10 or $atmosphere == 13 or $atmosphere == 15
130 23 17 1243 $atmosphere == 11 or $atmosphere == 12
139 125 81 1077 $self->atmosphere == 0 or $self->atmosphere == 1
206 56 1021 $self->atmosphere == 0 or $self->atmosphere == 1 or $self->atmosphere == 10
137 23 998 $self->atmosphere == 0 or $self->atmosphere == 1 or $self->atmosphere == 10 or $self->atmosphere == 11
79 17 981 $self->atmosphere == 0 or $self->atmosphere == 1 or $self->atmosphere == 10 or $self->atmosphere == 11 or $self->atmosphere == 12
152 108 161 1014 $self->size <= 1 or $hydro < 0
162 73 36 1174 $government < 0 or $self->population == 0
171 123 26 1134 $law < 0 or $self->population == 0
186 456 110 717 $self->atmosphere <= 3 or $self->atmosphere >= 10
187 334 54 895 $self->hydro == 0 or $self->hydro == 9
194 164 136 983 $self->government == 0 or $self->government == 5
196 12 7 1264 $self->government == 13 or $self->government == 14
207 256 78 949 $self->atmosphere == 4 || $self->atmosphere == 7 || $self->atmosphere == 9