Branch Coverage

blib/lib/Net/ASN.pm
Criterion Covered Total %
branch 72 100 72.0


line true false branch
86 0 30 unless ($inasn)
90 0 30 unless ($inasn =~ /^[\d\.]+$/)
95 18 12 if ($inasn =~ /^(\d+)$/) { }
12 0 elsif ($inasn =~ /^(\d+)\.(\d+)$/) { }
96 4 14 if ($asasdot) { }
7 7 elsif ($inasn >= 1 and $inasn <= 65535) { }
7 0 elsif ($inasn >= 65536 and $inasn <= 4294967295) { }
97 4 0 if ($inasn >= 1 and $inasn <= 65535) { }
122 0 12 unless ($firstasn >= 0 and $firstasn <= 65535 and ($secondasn >= 0 and $secondasn <= 65535) and $firstasn > 0 || $secondasn > 0)
134 4 8 if ($asasdot) { }
135 4 0 if ($firstasn > 0) { }
162 0 8 if (not $asplain =~ /^(\d+)$/) { }
179 0 6 if (not $asdot =~ /^(\d+)\.(\d+)$/) { }
195 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') { }
196 1 1 if ($self->{'_asdot'}) { }
206 2 2 if ($self->{'_asdotsedtet1'} == 0) { }
233 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') { }
234 2 2 if ($self->{'_asdot'}) { }
268 4 14 if ($self->{'_informat'} eq 'asdot') { }
5 9 elsif ($self->{'_informat'} eq 'asplain16') { }
5 4 elsif ($self->{'_informat'} eq 'asplain32') { }
4 0 elsif ($self->{'_informat'} eq 'asdotplus') { }
269 2 2 if ($self->{'_asdot'}) { }
301 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') { }
302 1 2 if ($self->{'_asdot'}) { }
317 2 2 if ($self->{'_asdotsedtet1'} == 0) { }
341 4 4 if ($asn >= 64512 and $asn <= 65534 or $asn >= 4200000000 and $asn <= 4294967294)
352 0 2 unless $inasn
353 0 2 unless $inasn =~ /^(\d+)$/
360 0 2 unless $inasn
361 0 2 unless $inasn =~ /^(\d+)$/
368 0 2 unless $inasn
375 0 2 unless $inasn
382 0 2 unless $inasn
389 0 2 unless $inasn
390 0 2 unless $inasn =~ /\./
397 0 2 unless $inasn
398 0 2 unless $inasn =~ /\./
405 0 2 unless $inasn
406 0 2 unless $inasn =~ /\./
414 0 4 unless $inasn