Branch Coverage

blib/lib/Mail/Qmail/Queue/Send.pm
Criterion Covered Total %
branch 35 72 48.6


line true false branch
106 0 2 unless $$self{'_qq_pid'} = $self->_start_qmail_queue($qq_path, \%o)
125 0 1 unless $self->body(shift())
127 0 1 unless $self->from(shift())
129 0 1 unless $self->to(@_)
131 0 1 unless $self->envelope_done
180 0 2 unless my $fh = $$self{'_msg_fh'}
182 0 2 unless print $fh @_
184 0 2 unless $self->body_close
215 0 3 unless defined $$self{'_from'}
231 0 2 unless $self->put_envelope_entry('')
233 0 2 unless my $fh = $$self{'_env_fh'}
235 0 2 unless close $fh
274 0 7 unless my $fh = $$self{'_env_fh'}
307 2 0 if ($? == 0) { }
0 0 elsif ($? >> 8) { }
340 4 0 unless ($$o{'LeaveEnvHandle'})
342 0 4 unless @env_pipe = POSIX::pipe()
345 4 0 unless ($$o{'LeaveMsgHandle'})
347 0 4 unless @body_pipe = POSIX::pipe()
353 0 4 if (not defined $f) { }
2 2 elsif ($f) { }
360 2 0 if (@body_pipe)
362 0 2 unless POSIX::close($body_pipe[0])
364 0 2 unless $$self{'_msg_fh'} = 'FileHandle'->new_from_fd($body_pipe[1], 'w')
367 2 0 if (@env_pipe)
369 0 2 unless POSIX::close($env_pipe[0])
371 0 2 unless $$self{'_env_fh'} = 'FileHandle'->new_from_fd($env_pipe[1], 'w')
379 2 0 if (@body_pipe)
381 0 2 unless POSIX::close($body_pipe[1])
384 0 2 unless POSIX::dup2($body_pipe[0], 0)
386 0 2 unless POSIX::close($body_pipe[0])
389 2 0 if (@env_pipe)
391 0 2 unless POSIX::close($env_pipe[1])
394 0 2 unless POSIX::dup2($env_pipe[0], 1)
396 0 2 unless POSIX::close($env_pipe[0])
399 0 0 unless exec $path