Condition Coverage

blib/lib/Crypt/RSA/Parse/Parser.pm
Criterion Covered Total %
condition 6 12 50.0


or 3 conditions

line l !l&&r !l&&!r condition
44 1 2 0 $self->_decode_rsa($pem_or_der) || do { unless (my $pkcs8 = $self->_decode_pkcs8($pem_or_der)) { die sprintf('Failed to parse as either RSA or PKCS8: %s', $self->{'_asn1'}->error); } ; $self->_decode_rsa_within_pkcs8_or_die($pkcs8) }
76 1 2 0 $self->_decode_rsa_public($pem_or_der) || do { unless (my $pkcs8 = $self->_decode_pkcs8_public($pem_or_der)) { die sprintf('Failed to parse as either RSA or PKCS8: %s', $self->{'_asn1'}->error); } ; $self->_decode_rsa_public_within_pkcs8_or_die($pkcs8) }
118 4 0 0 $self->_decode_rsa($pkcs8_hr->{'privateKey'}) || do { die 'Failed to parse RSA within PKCS8!' }
126 4 0 0 $self->_decode_rsa_public($pkcs8_hr->{'subjectPublicKey'}[0]) || do { die 'Failed to parse RSA within PKCS8!' }