Condition Coverage

blib/lib/Crypt/PKCS10.pm
Criterion Covered Total %
condition 73 143 51.0


and 3 conditions

line !l l&&!r l&&r condition
432 0 0 0 @a and @b
485 0 0 2 @_ == 2 and defined $class
0 0 2 @_ == 2 and defined $class and not ref $class
487 0 0 2 $version >= 0 and $version <= 1
505 2 0 0 ref $class and $class->isa("Crypt::PKCS10")
516 0 0 4 defined $oid and defined $apiVersion
0 0 4 defined $oid and defined $apiVersion and $apiVersion > 0
527 0 0 4 defined $apiVersion and $apiVersion > 0
563 7 1 3 @_ == 2 and defined $oid
565 1 0 7 @_ >= 3 and defined $oid
1 0 7 @_ >= 3 and defined $oid and defined $longname || defined $shortname
566 0 1 6 defined $oid and $oid =~ /^\d+(?:\.\d+)*$/
574 1 1 1 defined $shortname and grep /^\U$shortname\E$/, values %shortnames
592 0 13 0 defined $class and ref $class
13 0 0 defined $class and ref $class and $class->isa("Crypt::PKCS10")
601 0 0 13 defined $class and @_ >= 1
621 1 0 0 ref $class and $class->isa("Crypt::PKCS10")
642 0 11 1 @_ >= 1 and ref $_[0] eq "HASH"
654 11 0 1 $self->{'_dieOnError'} &&= $apiVersion >= 1
686 3 0 6 $self->{'_acceptPEM'} and $der =~ /$pemre/
704 1 0 6 $der =~ m[\A[A-Za-z0-9+/]+={0,2}\z] and length($der) % 4 == 0
717 0 0 9 $tlen and $tag == 16
720 0 0 9 $llen and $len
726 7 2 0 $tlen != $len and $self->{'_warnings'}
808 9 0 0 $self->{'_verifySignature'} and not $self->checkSignature
875 0 0 9 defined $signatureAlgorithm->{'algorithm'} and exists $oids{$signatureAlgorithm->{'algorithm'}}
888 0 0 9 defined $pkinfo->{'algorithm'}{'algorithm'} and exists $oids{$pkinfo->{'algorithm'}{'algorithm'}}
1041 0 24 0 defined $name and exists $variantNames{$name}
1088 0 13 14 defined $name and exists $variantNames{$name}
1197 0 1 18 not $long and exists $shortnames{$name}
1354 0 1 0 $tlen != 0 and $tag != 5
1367 2 0 4 defined $format and $format == 2
1517 0 0 4 defined $attributes and exists $attributes->{'extensionRequest'}
1534 0 0 23 defined $attributes and exists $attributes->{'extensionRequest'}
1569 0 0 6 defined $attributes and exists $attributes->{'extensionRequest'}
1700 0 0 1 defined $v and $v == 1
1709 0 0 1 defined $v and $v == 1

or 2 conditions

line l !l condition
490 1 1 !$version || 0
788 1 0 $params->{'saltLength'} || 32
1132 1 0 $self->{'certificationRequestInfo'}{'subject'}{$name}[0] || ''
1179 2 0 $self->{'certificationRequestInfo'}{'subject'}{$component}[0] || ''

or 3 conditions

line l !l&&r !l&&!r condition
563 1 1 1 exists $oids{$oid} || exists $oid2extkeyusage{$oid}
565 4 3 0 defined $longname || defined $shortname
569 1 0 2 exists $oids{$oid} or exists $oid2extkeyusage{$oid}
572 2 0 1 exists $oids{$oid} or exists $oid2extkeyusage{$oid}
606 1 1 2 not $apiVersion or $die
2 1 1 not $apiVersion or $die or not defined wantarray
1149 92 0 0 defined $parsed or $optional
1759 4 0 0 defined $v || defined($v = $self->error)