Branch Coverage

blib/lib/Crypt/RSA/Key/Private/SSH.pm
Criterion Covered Total %
branch 19 42 45.2


line true false branch
99 0 0 defined $key->Password ? :
2 0 defined $params{'Password'} ? :
102 0 2 unless defined $string
103 0 2 if ref $string eq 'ARRAY'
106 0 2 if $key->{'Hidden'}
112 0 2 unless $id eq "SSH PRIVATE KEY FILE FORMAT 1.1\n"
124 2 0 if ($cipher_type != 0)
125 0 2 unless my $cipher_names = $Crypt::RSA::Key::Private::SSH::CIPHERS{$cipher_type}
131 2 0 if (eval { do { require "$file.pm"; 1 } })
135 0 2 unless (defined $cipher_name)
149 1 1 unless ($check1 == $buffer->get_int8 and $check2 == $buffer->get_int8)
177 0 1 if $key->{'Hidden'}
180 0 0 defined $key->Password ? :
1 0 defined $params{'Password'} ? :
183 0 0 defined $key->Cipher ? :
1 0 defined $params{'Cipher'} ? :
189 1 0 if ($passphrase ne '')
191 0 1 unless defined $cipher_type
220 1 0 if ($cipher_type) { }
226 1 0 if (eval { do { require "$file.pm"; 1 } })
230 0 1 unless (defined $cipher_name)