Branch Coverage

blib/lib/Crypt/X509/CRL.pm
Criterion Covered Total %
branch 14 100 14.0


line true false branch
48 2 1 if (not defined $parser or $parser->error)
70 0 0 unless exists $self->{'tbsCertList'}{'version'}
79 0 0 unless exists $self->{'tbsCertList'}{'version'}
82 0 0 if $v == 0
83 0 0 if $v == 1
84 0 0 if $v == 2
90 1 0 if (exists $self->{'tbsCertList'}{'thisUpdate'}{'utcTime'}) { }
0 0 elsif (exists $self->{'tbsCertList'}{'thisUpdate'}{'generalTime'}) { }
102 1 0 if (exists $self->{'tbsCertList'}{'nextUpdate'}{'utcTime'}) { }
0 0 elsif ($self->{'tbsCertList'}{'nextUpdate'}{'generalTime'}) { }
156 5 0 if ($oid2attr{$i->{'type'}}) { }
173 0 0 if ($i->{'type'} eq $oid)
236 0 0 if (defined $self->_AuthorityKeyIdentifier)
245 0 0 unless (defined $extensions)
247 0 0 if (defined $self->{'tbsCertList'}{'AuthorityKeyIdentifier'})
252 0 0 if ($extension->{'extnID'} eq '2.5.29.35')
255 0 0 if ($parser->error)
270 0 0 if (not defined $rdn) { }
280 0 0 if ($oid2attr{$i->{'type'}}) { }
295 0 0 if (not defined $rdn) { }
302 0 0 if ($i->{'type'} eq $oid)
360 0 1 if (defined $self->{'tbsCertList'}{'cRLNumber'})
364 0 1 unless (defined $extensions)
367 1 1 if ($extension->{'extnID'} eq '2.5.29.20')
370 0 1 if ($parser->error)
387 0 0 if (defined $self->{'tbsCertList'}{'idp'})
391 0 0 unless (defined $extensions)
394 0 0 if ($extension->{'extnID'} eq '2.5.29.28')
397 0 0 if ($parser->error)
403 0 0 if (exists $extension->{'critical'}) { }
410 0 0 if (exists $idps->{'onlyContainsUserCerts'}) { }
417 0 0 if (exists $idps->{'onlyContainsCACerts'}) { }
424 0 0 if (exists $idps->{'onlyContainsAttributeCerts'}) { }
431 0 0 if (exists $idps->{'indirectCRL'}) { }
443 0 0 if (exists $each_fullName->{'directoryName'}) { }
0 0 elsif (exists $each_fullName->{'uniformResourceIdentifier'}) { }
457 0 0 if (exists $idps->{'onlySomeReasons'}) { }
476 0 0 if ($oid2attr{$i->{'type'}}) { }
512 0 0 if (defined $self->{'tbsCertList'}{'rl'})
517 0 0 unless (defined $rls)
526 0 0 if (exists $rl->{'revocationDate'}{'utcTime'}) { }
0 0 elsif (exists $rl->{'revocationDate'}{'generalTime'}) { }
537 0 0 if ($extension->{'extnID'} eq '2.5.29.21') { }
0 0 elsif ($extension->{'extnID'} eq '2.5.29.24') { }
0 0 elsif ($extension->{'extnID'} eq '2.5.29.23') { }
540 0 0 if ($parser->error)
550 0 0 if ($parser->error)
560 0 0 if ($parser->error)
586 2 1 if (not defined $what or '' eq $what)
587 2 1 unless (defined $asn)