Branch Coverage

lib/Mail/Make/GPG.pm
Criterion Covered Total %
branch 0 90 0.0


line true false branch
39 0 0 unless $self->SUPER::init(@_)
61 0 0 unless ref $recipients eq "ARRAY"
62 0 0 unless (scalar @$recipients)
67 0 0 unless $self->_maybe_fetch_keys($recipients)
105 0 0 unless $self->_ensure_envelope_headers($entity)
113 0 0 if $self->error
122 0 0 if (defined $passphrase)
141 0 0 unless ref $recipients eq "ARRAY"
142 0 0 unless (scalar @$recipients)
150 0 0 unless $self->_maybe_fetch_keys($recipients)
155 0 0 if $self->error
166 0 0 if (defined $passphrase)
293 0 0 if (not $self->_is_a($mail, 'Mail::Make')) { }
0 0 elsif (not $self->_is_a($mail->{'_headers'}, 'Mail::Make::Headers')) { }
303 0 0 unless ($mail->{'_headers'}->exists("Date"))
306 0 0 unless $mail->{'_headers'}->init_header("Date", $mail->_format_date)
310 0 0 unless ($mail->{'_headers'}->exists("Message-ID"))
314 0 0 unless $mail->{'_headers'}->message_id({"generate", 1, "domain", $mail->_default_domain})
333 0 0 if ($pos < 0)
352 0 0 if ($line =~ /^[ \t]/) { }
0 0 elsif ($line =~ /^([\x21-\x39\x3B-\x7E]+):\s*(.*?)\s*$/) { }
361 0 0 if (length $cur_name)
363 0 0 unless $headers->push_header($cur_name, $cur_value)
370 0 0 if (length $cur_name)
372 0 0 unless $headers->push_header($cur_name, $cur_value)
398 0 0 if (defined $self->{'gpg_bin'} and length $self->{'gpg_bin'})
403 0 0 unless $self->_load_class("File::Which")
409 0 0 if (defined $path and length $path)
425 0 0 unless $self->{'auto_fetch'} and defined $self->{'keyserver'} and length $self->{'keyserver'}
427 0 0 unless $self->_load_class("IPC::Run")
475 0 0 unless defined $pp
476 0 0 if (ref $pp eq "CODE")
480 0 0 if ($@)
506 0 0 unless $self->_load_class("IPC::Run")
511 0 0 if defined $passphrase
512 0 0 ref $input_ref ? :
522 0 0 if ($@)
526 0 0 unless ($ok)
548 0 0 unless (defined $mail)
553 0 0 unless ($mail->can("as_entity"))
577 0 0 if ($pos < 0)
595 0 0 if ($line =~ /^[ \t]/) { }
597 0 0 if $keep
601 0 0 $line =~ /^Content-/i ? :
602 0 0 if $keep