Branch Coverage

blib/lib/Net/ASN.pm
Criterion Covered Total %
branch 69 96 71.8


line true false branch
77 0 22 unless ($inasn)
81 0 22 unless ($inasn =~ /^[\d\.]+$/)
86 10 12 if ($inasn =~ /^(\d+)$/) { }
12 0 elsif ($inasn =~ /^(\d+)\.(\d+)$/) { }
87 4 6 if ($asasdot) { }
3 3 elsif ($inasn > 0 and $inasn <= 65535) { }
3 0 elsif ($inasn > 65535 and $inasn <= 4294967295) { }
88 4 0 if ($inasn > 0 and $inasn <= 65535) { }
113 0 12 unless ($firstasn >= 0 and $firstasn <= 65535 and ($secondasn >= 0 and $secondasn <= 65535) and $firstasn > 0 || $secondasn > 0)
125 4 8 if ($asasdot) { }
126 4 0 if ($firstasn > 0) { }
153 0 8 if (not $asplain =~ /^(\d+)$/) { }
170 0 6 if (not $asdot =~ /^(\d+)\.(\d+)$/) { }
186 2 8 if ($$self{'_informat'} eq 'asdot') { }
4 4 elsif ($$self{'_informat'} eq 'asdotplus') { }
2 2 elsif ($$self{'_informat'} eq 'asplain16') { }
2 0 elsif ($$self{'_informat'} eq 'asplain32') { }
187 1 1 if ($$self{'_asdot'}) { }
197 2 2 if ($$self{'_asdotsedtet1'} == 0) { }
224 4 6 if ($$self{'_informat'} eq 'asdot') { }
2 4 elsif ($$self{'_informat'} eq 'asdotplus') { }
2 2 elsif ($$self{'_informat'} eq 'asplain16') { }
2 0 elsif ($$self{'_informat'} eq 'asplain32') { }
225 2 2 if ($$self{'_asdot'}) { }
259 4 6 if ($$self{'_informat'} eq 'asdot') { }
1 5 elsif ($$self{'_informat'} eq 'asplain16') { }
1 4 elsif ($$self{'_informat'} eq 'asplain32') { }
4 0 elsif ($$self{'_informat'} eq 'asdotplus') { }
260 2 2 if ($$self{'_asdot'}) { }
292 3 5 if ($$self{'_informat'} eq 'asdot') { }
0 5 elsif ($$self{'_informat'} eq 'asplain16') { }
1 4 elsif ($$self{'_informat'} eq 'asplain32') { }
4 0 elsif ($$self{'_informat'} eq 'asdotplus') { }
293 1 2 if ($$self{'_asdot'}) { }
308 2 2 if ($$self{'_asdotsedtet1'} == 0) { }
332 0 2 unless $inasn
333 0 2 unless $inasn =~ /^(\d+)$/
340 0 2 unless $inasn
341 0 2 unless $inasn =~ /^(\d+)$/
348 0 2 unless $inasn
355 0 2 unless $inasn
362 0 2 unless $inasn
369 0 2 unless $inasn
370 0 2 unless $inasn =~ /\./
377 0 2 unless $inasn
378 0 2 unless $inasn =~ /\./
385 0 2 unless $inasn
386 0 2 unless $inasn =~ /\./