Branch Coverage

blib/lib/Crypt/Keyczar/Tool.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
31 4 2 if ($purpose eq 'sign') { }
2 0 elsif ($purpose eq 'crypt') { }
32 2 2 if (not defined $$opt{'asymmetric'} || defined $$opt{'type'}) { }
0 2 elsif (not defined $$opt{'asymmetric'} and defined $$opt{'type'}) { }
1 1 elsif (uc $$opt{'asymmetric'} eq 'RSA') { }
46 1 1 if (defined $$opt{'asymmetric'}) { }
103 0 6 if (not $self->writer->delete_key($version))
116 2 1 if ($private->get_type eq 'RSA_PRIV') { }
1 0 elsif ($private->get_type eq 'DSA_PRIV') { }
117 1 1 if ($private->get_purpose eq 'DECRYPT_AND_ENCRYPT') { }
1 0 elsif ($private->get_purpose eq 'SIGN_AND_VERIFY') { }
128 1 0 if ($private->get_purpose eq 'SIGN_AND_VERIFY') { }
138 0 3 unless ($public)
144 6 3 if ($v)
161 0 0 if ($meta->get_purpose eq 'DECRYPT_AND_ENCRYPT') { }
0 0 elsif ($meta->get_purpose eq 'SIGN_AND_VERIFY') { }
173 0 0 if ($destination) { }
174 0 0 unless open my $fh, '>', $destination