Branch Coverage

blib/lib/Mail/Milter/Authentication/Client.pm
Criterion Covered Total %
branch 33 50 66.0


line true false branch
30 0 26 if ($type eq 'inet') { }
26 0 elsif ($type eq 'unix') { }
45 0 26 if ($config->{'protocol'} ne 'milter')
66 0 0 unless ($self->{'mail_file'} or $self->{'mail_data'})
85 472 60 if ($action eq 'continue') { }
49 11 elsif ($action eq 'insert') { }
6 5 elsif ($action eq 'replace') { }
4 1 elsif ($action eq 'add') { }
1 0 elsif ($action eq 'reject') { }
111 1 0 if ($self->{'testing'}) { }
135 49 460 if ($i == $index)
157 13 92 if (lc $key eq lc $header) { }
158 6 7 if ($i == $index) { }
159 6 0 if ($value eq '') { }
197 26 0 if ($self->{'mail_file'}) { }
0 0 elsif ($self->{'mail_data'}) { }
214 0 684 if ($dataline =~ /^\./)
217 26 658 if ($dataline eq '')
225 367 291 if ($header_line =~ /^\s/) { }
229 265 26 if ($value)
231 265 0 if defined $hvalue
238 26 0 if ($value)
240 26 0 if defined $hvalue
330 0 338 unless defined $value
344 1 0 if $self->{'rejected'} and $self->{'testing'}