Branch Coverage

blib/lib/Crypt/OpenSSL/RSA.pm
Criterion Covered Total %
branch 25 26 96.1


line true false branch
23 1 29 unless defined $p_key_string and length $p_key_string > 0
26 14 15 if ($p_key_string =~ /^-----BEGIN RSA PUBLIC KEY-----/) { }
6 9 elsif ($p_key_string =~ /^-----BEGIN PUBLIC KEY-----/) { }
3 6 elsif ($p_key_string =~ /^-----/) { }
3 3 elsif (substr($p_key_string, 0, 1) eq '0') { }
41 1 2 if (index($p_key_string, "\cF\t*\206H\206\367\r\cA\cA\cA") != -1) { }
58 2 31 unless defined $p_key_string and length $p_key_string > 0
61 24 7 if ($p_key_string =~ /^-----/) { }
4 3 elsif (substr($p_key_string, 0, 1) eq '0') { }
76 68 22 $_ ? :
77 1 1 if ($opts{'check'} and $rsa and $rsa->is_private)
78 0 1 unless $rsa->check_key
91 99 29 $_ ? :