Branch Coverage

blib/lib/Net/Server/Mail/SMTP.pm
Criterion Covered Total %
branch 31 58 53.4


line true false branch
88 0 7 unless $rv eq $self
118 20 4 if (defined $bool)
127 24 12 if (defined $bool)
136 22 2 if (defined $bool)
140 18 4 unless ($bool)
164 2 0 $sender ? :
180 2 0 ref $recipients ? :
215 0 0 unless (defined $hostname and length $hostname)
346 0 2 unless ($self->step_reverse_path)
351 0 2 unless ($args =~ s/^from:\s*//i)
356 0 2 if ($self->step_forward_path)
362 0 2 unless (($address, $rest) = $args =~ /^<(.*?)>(?: (\S.*))?$/)
366 0 2 if ($rest)
370 0 2 unless ($self->handle_options('MAIL', $address, @options))
401 0 4 unless ($self->step_forward_path)
406 0 4 unless ($args =~ s/^to:\s*//i)
412 0 4 unless (($address, $rest) = $args =~ /^<(.*?)>(?: (\S.*))?$/)
416 0 4 if ($rest)
420 0 4 unless ($self->handle_options('RCPT', $address, @options))
429 2 2 unless ref $buffer eq 'ARRAY'
525 0 2 unless ($self->step_maildata_path)
530 0 2 if (defined $args and length $args)
553 2 2 if ("$self->{'last_chunk'}$data" =~ /\r?\n\.\r?\n/s)
555 0 2 if (length $more_data)
558 0 0 unless ($self->{'data_handle_more_data'})
578 2 0 $data ? :
609 0 2 if ($more_data) { }
634 0 0 if $self->step_reverse_path
677 0 0 if (@options)