Branch Coverage

lib/Physics/Ballistics/Terminal.pm
Criterion Covered Total %
branch 149 294 50.6


line true false branch
175 0 3 unless defined $len and defined $vel
176 3 0 unless defined $scaling
177 0 3 unless defined $material
179 0 3 if $material eq 'wha'
180 0 3 if $material eq 'du'
181 0 3 if $material eq 'duv'
182 0 3 if $material eq 'wc'
183 0 3 if $material eq 'steel'
184 0 3 if $material =~ /[^\d\.]/
185 3 0 unless defined $deg_angle
241 0 1 unless defined $inx
296 0 3 unless defined $soff
303 0 3 if $aden < $MIN_DENSITY
304 0 3 if ($soff =~ /(\d+)mm/)
306 1 2 if ($prec) { }
308 0 1 if ($soff <= 1) { }
1 0 elsif ($soff <= 3) { }
0 0 elsif ($soff <= 6) { }
0 0 elsif ($soff <= 9) { }
316 0 2 if ($soff <= 1) { }
0 2 elsif ($soff <= 2) { }
2 0 elsif ($soff <= 3) { }
0 0 elsif ($soff <= 4) { }
0 0 elsif ($soff <= 7) { }
0 0 elsif ($soff <= 10) { }
476 0 0 unless $len / $diam >= 10 or defined $kA1 and defined $kA2
481 0 1 unless defined $mat_to_a{$targ_mat}
482 0 1 unless defined $mat_to_c0{$pen_mat}
541 0 0 unless defined $len and defined $targthick
542 0 0 unless $len / $diam >= 10 or defined $kA1 and defined $kA2
699 3 1 if $dist_ft >= $dist_stable
710 4 1 if $dist_ft >= $dist_stable
721 0 0 if $dist_ft >= $dist_stable
732 3 1 if $dist_ft >= $dist_stable
743 3 1 if $dist_ft >= $dist_stable
754 7 3 if $dist_ft >= $dist_stable
765 3 1 if $dist_ft >= $dist_stable
774 0 31 unless defined $diam
775 31 0 unless defined $te
787 31 0 if defined $curve_h{$target_material}
793 31 0 if defined($pf = $Physics::Ballistics::Terminal::Penetrator_Types_H{$pen_typ})
874 0 5 unless defined $diam
875 5 0 unless defined $te
879 5 0 if defined($pf = $Penetrator_Types_H{$typ})
924 0 1 unless defined $diameter_inches
950 0 1 if $n < 1
967 2 3 unless $n < 0
969 2 1 if $ret =~ /\.(\d+)/
1012 0 1 unless defined $c1
1018 0 1 if ($debug)
1030 0 1 if ($debug)
1093 0 2 unless defined $grains and defined $fps
1118 0 3 unless $hv =~ /^(-?[0-9\.]+)/
1120 1 2 if $hv < 701
1121 0 2 if $hv < 826
1122 0 2 if $hv < 851
1123 1 1 if $hv < 1001
1124 0 1 if $hv < 1201
1144 0 3 unless $bhn =~ /^(-?[0-9\.]+)/
1146 1 2 if $bhn > 838
1147 0 2 if $bhn > 804
1148 1 1 if $bhn > 752
1149 0 1 if $bhn > 738
1150 0 1 if $bhn > 650
1180 1 4 if $hrc > 65
1181 1 3 if $hrc < 15
1205 1 4 if $bhn < 200
1206 1 3 if $bhn > 770
1208 0 3 if $bhn <= 215
1209 0 3 if $bhn <= 436 and $bhn >= 254
1210 0 3 if $bhn <= 402 and $bhn >= 279
1211 1 2 if $bhn <= 710 and $bhn >= 553
1244 0 3 unless $psi =~ /^(-?[0-9\.]+)/
1247 1 2 if $psi < 127
1248 0 2 if $psi < 140
1249 0 2 if $psi < 153
1250 0 2 if $psi < 166
1251 0 2 if $psi < 179
1252 0 2 if $psi < 192
1253 0 2 if $psi < 205
1254 0 2 if $psi < 218
1255 1 1 if $psi < 231
1256 0 1 if $psi < 257
1257 0 1 if $psi < 270
1258 0 1 if $psi < 283
1259 0 1 if $psi < 296
1260 0 1 if $psi < 322
1261 0 1 if $psi < 335
1262 0 1 if $psi < 348
1263 0 1 if $psi < 374
1264 1 0 if $psi < 387
1265 0 0 if $psi < 400
1266 0 0 if $psi < 426
1267 0 0 if $psi < 439
1268 0 0 if $psi < 452
1269 0 0 if $psi < 478
1270 0 0 if $psi < 491
1271 0 0 if $psi < 504
1272 0 0 if $psi < 530
1273 0 0 if $psi < 595
1274 0 0 if $psi < 621
1275 0 0 if $psi < 634
1306 0 3 unless $bhn =~ /^(-?[0-9\.]+)/
1308 1 2 if $bhn < 127
1309 0 2 if $bhn < 131
1310 0 2 if $bhn < 138
1311 0 2 if $bhn < 144
1312 0 2 if $bhn < 150
1313 0 2 if $bhn < 157
1314 0 2 if $bhn < 168
1315 0 2 if $bhn < 171
1316 0 2 if $bhn < 175
1317 0 2 if $bhn < 184
1318 0 2 if $bhn < 188
1319 0 2 if $bhn < 193
1320 0 2 if $bhn < 198
1321 0 2 if $bhn < 202
1322 0 2 if $bhn < 208
1323 0 2 if $bhn < 213
1324 0 2 if $bhn < 218
1325 0 2 if $bhn < 230
1326 0 2 if $bhn < 236
1327 0 2 if $bhn < 242
1328 0 2 if $bhn < 249
1329 0 2 if $bhn < 256
1330 0 2 if $bhn < 263
1331 0 2 if $bhn < 270
1332 0 2 if $bhn < 294
1333 0 2 if $bhn < 303
1334 0 2 if $bhn < 322
1335 0 2 if $bhn < 332
1336 0 2 if $bhn < 342
1337 1 1 if $bhn < 353
1338 0 1 if $bhn < 376
1339 0 1 if $bhn < 389
1340 0 1 if $bhn < 402
1341 0 1 if $bhn < 430
1342 0 1 if $bhn < 445
1343 0 1 if $bhn < 462
1344 0 1 if $bhn < 478
1345 0 1 if $bhn < 496
1346 0 1 if $bhn < 515
1347 0 1 if $bhn < 535
1348 0 1 if $bhn < 602
1349 0 1 if $bhn < 628
1350 0 1 if $bhn < 631
1351 0 1 if $bhn < 639