Branch Coverage

blib/lib/Traveller/System.pm
Criterion Covered Total %
branch 161 166 96.9


line true false branch
77 107 1176 if ($self->starport eq 'A') { }
219 957 elsif ($self->starport eq 'B') { }
398 559 elsif ($self->starport eq 'C') { }
346 213 elsif ($self->starport eq 'D') { }
178 35 elsif ($self->starport eq 'E') { }
108 71 1212 if $atmosphere < 0
116 250 1033 if $atmosphere == 2 or $atmosphere == 3
119 151 989 if $atmosphere == 3 or $atmosphere == 4 or $atmosphere == 14
123 176 1107 if $atmosphere == 8 or $atmosphere == 9
126 9 1218 if $atmosphere == 10 or $atmosphere == 13 or $atmosphere == 15
130 40 1243 if $atmosphere == 11 or $atmosphere == 12
139 40 981 if $self->atmosphere == 0 or $self->atmosphere == 1 or $self->atmosphere == 10 or $self->atmosphere == 11 or $self->atmosphere == 12
145 147 1129 if $self->atmosphere != 13 and $self->temperature >= 10 and $self->temperature <= 11
149 64 1219 if $self->atmosphere != 13 and $self->temperature >= 12
152 269 1014 if $self->size <= 1 or $hydro < 0
155 45 1238 if $hydro > 10
162 109 1174 if $government < 0 or $self->population == 0
171 149 1134 if $law < 0 or $self->population == 0
180 107 1176 if $self->starport eq 'A'
181 219 1064 if $self->starport eq 'B'
182 398 885 if $self->starport eq 'C'
183 35 1248 if $self->starport eq 'X'
184 108 1175 if $self->size <= 1
185 447 836 if $self->size >= 2 and $self->size <= 4
186 566 717 if $self->atmosphere <= 3 or $self->atmosphere >= 10
187 388 895 if $self->hydro == 0 or $self->hydro == 9
188 80 1203 if $self->hydro == 10
189 732 551 if $self->population >= 1 and $self->population <= 5
190 68 1215 if $self->population == 9
191 34 1249 if $self->population == 10
192 0 1283 if $self->population == 11
193 0 1283 if $self->population == 12
194 300 983 if $self->government == 0 or $self->government == 5
195 119 1164 if $self->government == 7
196 19 1264 if $self->government == 13 or $self->government == 14
197 47 1236 if $self->population == 0
198 6 1277 if $tech > 15
205 57 1226 if $self->atmosphere <= 1 and $self->tech < 8
206 49 1234 if $self->atmosphere <= 3 and $self->tech < 5
207 35 1248 if $self->atmosphere == 4 || $self->atmosphere == 7 || $self->atmosphere == 9 and $self->tech < 3
210 27 1256 if $self->atmosphere == 10 and $self->tech < 8
211 12 1271 if $self->atmosphere == 11 and $self->tech < 9
212 14 1269 if $self->atmosphere == 12 and $self->tech < 10
213 0 7 if $self->atmosphere == 13 and $self->atmosphere == 14 and $self->tech < 5
215 0 1283 if $self->atmosphere == 15 and $self->tech < 8
216 179 1104 if ($doomed)
227 126 258 if $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8 and $self->population >= 5 and $self->population <= 7
230 29 12 if $self->size == 0 and $self->atmosphere == 0 and $self->hydro == 0
231 193 0 if $self->population == 0 and $self->government == 0 and $self->law == 0
232 160 1123 if $self->atmosphere >= 2 and $self->hydro == 0
233 60 1223 if $self->atmosphere >= 10 and $self->hydro >= 1
234 301 214 if $self->size >= 5 and $self->atmosphere >= 4 and $self->atmosphere <= 9 and $self->hydro >= 4 and $self->hydro <= 8
237 93 1190 if $self->population >= 9
238 140 1143 if $self->tech >= 12
239 32 1251 if $self->atmosphere <= 1 and $self->hydro >= 1
240 46 1237 if $self->population >= 9 and &any(sub { $_ == $self->atmosphere; } , 0, 1, 2, 4, 7, 9)
241 312 971 if $self->population >= 1 and $self->population <= 3
242 218 1065 if $self->tech >= 1 and $self->tech <= 5
243 87 369 if $self->atmosphere <= 3 and $self->hydro <= 3 and $self->population >= 6
244 490 793 if $self->population >= 4 and $self->population <= 6
245 226 851 if $self->atmosphere >= 2 and $self->atmosphere <= 5 and $self->hydro <= 3
246 64 364 if $self->population >= 6 and $self->population <= 8 and &any(sub { $_ == $self->atmosphere; } , 6, 8)
247 80 1203 if $self->hydro >= 10
248 125 1158 if $self->atmosphere == 0
255 110 1173 if $self->atmosphere >= 10
256 112 1171 if $self->population and $self->government == 0
257 112 1171 if $self->government == 7
258 53 1230 if $self->government == 10
259 141 1142 if $self->population and $self->law == 0
260 230 1053 if $self->law >= 9
261 38 1245 if $danger and $self->pirate
262 563 682 if $danger
288 7161 537 if $num < 10
305 126 1157 if $self->naval
306 489 794 if $self->scout
307 147 1136 if $self->research
308 317 966 if $self->TAS
309 205 1078 if $self->consulate
310 81 1202 if $self->pirate
311 1081 202 if $self->gasgiant
314 601 682 if $self->travelzone
315 944 339 if ($self->culture)
317 450 494 if $self->travelzone