Condition Coverage

blib/lib/Crypt/PKCS10.pm
Criterion Covered Total %
condition 72 141 51.0


and 3 conditions

line !l l&&!r l&&r condition
237 0 0 0 @a and @b
290 0 0 2 @_ == 2 and defined $class
0 0 2 @_ == 2 and defined $class and not ref $class
292 0 0 2 $version >= 0 and $version <= 1
310 2 0 0 ref $class and $class->isa('Crypt::PKCS10')
321 0 0 4 defined $oid and defined $apiVersion
0 0 4 defined $oid and defined $apiVersion and $apiVersion > 0
332 0 0 4 defined $apiVersion and $apiVersion > 0
368 7 1 3 @_ == 2 and defined $oid
370 1 0 7 @_ >= 3 and defined $oid
1 0 7 @_ >= 3 and defined $oid and defined $longname || defined $shortname
371 0 1 6 defined $oid and $oid =~ /^\d+(?:\.\d+)*$/
379 1 1 1 defined $shortname and grep /^\U$shortname\E$/, values %shortnames
397 0 12 0 defined $class and ref $class
12 0 0 defined $class and ref $class and $class->isa('Crypt::PKCS10')
406 0 0 12 defined $class and @_ >= 1
426 1 0 0 ref $class and $class->isa('Crypt::PKCS10')
447 0 10 1 @_ >= 1 and ref $_[0] eq 'HASH'
459 10 0 1 $self->{'_dieOnError'} &&= $apiVersion >= 1
491 3 0 5 $self->{'_acceptPEM'} and $der =~ /$pemre/
509 1 0 5 $der =~ m[\A[A-Za-z0-9+/]+={0,2}\z] and length($der) % 4 == 0
522 0 0 8 $tlen and $tag == 16
525 0 0 8 $llen and $len
531 6 2 0 $tlen != $len and $self->{'_warnings'}
788 8 0 0 $self->{'_verifySignature'} and not $self->checkSignature
855 0 0 8 defined $signatureAlgorithm->{'algorithm'} and exists $oids{$signatureAlgorithm->{'algorithm'}}
868 0 0 8 defined $pkinfo->{'algorithm'}{'algorithm'} and exists $oids{$pkinfo->{'algorithm'}{'algorithm'}}
1029 0 24 0 defined $name and exists $variantNames{$name}
1064 0 13 14 defined $name and exists $variantNames{$name}
1173 0 1 18 not $long and exists $shortnames{$name}
1324 0 1 0 $tlen != 0 and $tag != 5
1338 2 0 3 defined $format and $format == 2
1488 0 0 4 defined $attributes and exists $attributes->{'extensionRequest'}
1505 0 0 23 defined $attributes and exists $attributes->{'extensionRequest'}
1540 0 0 6 defined $attributes and exists $attributes->{'extensionRequest'}
1662 0 0 1 defined $v and $v == 1
1671 0 0 1 defined $v and $v == 1

or 2 conditions

line l !l condition
295 1 1 !$version || 0
1108 1 0 $self->{'certificationRequestInfo'}{'subject'}{$name}[0] || ''
1155 2 0 $self->{'certificationRequestInfo'}{'subject'}{$component}[0] || ''

or 3 conditions

line l !l&&r !l&&!r condition
368 1 1 1 exists $oids{$oid} || exists $oid2extkeyusage{$oid}
370 4 3 0 defined $longname || defined $shortname
374 1 0 2 exists $oids{$oid} or exists $oid2extkeyusage{$oid}
377 2 0 1 exists $oids{$oid} or exists $oid2extkeyusage{$oid}
411 1 1 2 not $apiVersion or $die
2 1 1 not $apiVersion or $die or not defined wantarray
1125 87 0 0 defined $parsed or $optional
1721 4 0 0 defined $v || defined($v = $self->error)