Branch Coverage

blib/lib/Mail/Run/Crypt.pm
Criterion Covered Total %
branch 15 28 53.5


line true false branch
33 1 6 unless defined $self->{'mailto'}
37 5 1 unless defined $self->{'name'}
40 5 1 unless defined $self->{'encrypt'}
41 3 3 unless defined $self->{'sign'}
44 3 3 if ($self->{'sign'})
46 1 2 unless defined $self->{'keyid'}
48 1 1 unless defined $self->{'passphrase'}
61 0 0 unless eval { do { run3(\@command, undef, \@out, \@err) } }
66 0 0 if (@out)
73 0 0 if (@err)
89 0 2 defined $self->{'exit'} ? :
111 0 0 if ($self->{'sign'} and $self->{'encrypt'}) { }
0 0 elsif ($self->{'sign'}) { }
0 0 elsif ($self->{'encrypt'}) { }