Condition Coverage

blib/lib/Crypt/PKCS10.pm
Criterion Covered Total %
condition 74 143 51.7


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 16 0 defined $class and ref $class
16 0 0 defined $class and ref $class and $class->isa("Crypt::PKCS10")
601 0 0 16 defined $class and @_ >= 1
621 1 0 0 ref $class and $class->isa("Crypt::PKCS10")
642 0 14 1 @_ >= 1 and ref $_[0] eq "HASH"
654 14 0 1 $self->{'_dieOnError'} &&= $apiVersion >= 1
686 3 0 9 $self->{'_acceptPEM'} and $der =~ /$pemre/
704 1 0 9 $der =~ m[\A[A-Za-z0-9+/]+={0,2}\z] and length($der) % 4 == 0
717 0 0 12 $tlen and $tag == 16
720 0 0 12 $llen and $len
726 10 2 0 $tlen != $len and $self->{'_warnings'}
816 12 0 0 $self->{'_verifySignature'} and not $self->checkSignature
883 0 0 12 defined $signatureAlgorithm->{'algorithm'} and exists $oids{$signatureAlgorithm->{'algorithm'}}
896 0 0 12 defined $pkinfo->{'algorithm'}{'algorithm'} and exists $oids{$pkinfo->{'algorithm'}{'algorithm'}}
1049 0 24 0 defined $name and exists $variantNames{$name}
1096 0 13 14 defined $name and exists $variantNames{$name}
1205 0 1 18 not $long and exists $shortnames{$name}
1369 0 1 0 $tlen != 0 and $tag != 5
1382 2 0 7 defined $format and $format == 2
1532 0 0 4 defined $attributes and exists $attributes->{'extensionRequest'}
1549 0 0 23 defined $attributes and exists $attributes->{'extensionRequest'}
1584 0 0 6 defined $attributes and exists $attributes->{'extensionRequest'}
1721 0 0 1 defined $v and $v == 1
1730 0 0 1 defined $v and $v == 1

or 2 conditions

line l !l condition
490 1 1 !$version || 0
788 2 2 $params->{'saltLength'} || 20
1140 1 0 $self->{'certificationRequestInfo'}{'subject'}{$name}[0] || ''
1187 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
1157 107 0 0 defined $parsed or $optional
1780 4 0 0 defined $v || defined($v = $self->error)