Branch Coverage

blib/lib/Mail/Log/Trace/Postfix.pm
Criterion Covered Total %
branch 57 58 98.2


line true false branch
114 0 5 if $year < 1970
116 1 4 if (defined $maillog)
132 18 3 unless (defined $maillog)
134 1 17 defined $parser_class ? :
137 1 17 if (defined $self->get_year) { }
147 1 20 if ($argref->{'from_start'})
155 17 6342 if (&_line_matches($line_data, $msg_info))
175 1 8 unless $self->find_message($argref)
188 23 60 if (defined $line_data->{'id'} and $line_data->{'id'} eq $msg_info->{'connection_id'})
194 7 26 if ($line_data->{'pid'} eq $msg_info->{'process_id'} and $line_data->{'connect'})
217 108 137 if (defined $line_data->{'id'} and $line_data->{'id'} eq $msg_info->{'connection_id'})
225 79 29 if (defined $line_data->{'to'}[0])
233 1286 1090 if (defined $line_data->{$key} and $key ne 'to')
240 7 101 if ($line_data->{'text'} eq 'removed')
246 6 13 if ($line_data->{'pid'} eq $msg_info->{'process_id'} and $line_data->{'disconnect'})
256 1 7 unless ($start_found)
261 1 6 unless ($end_found)
296 57231 12718 if $_ ne 'to_address' and $_ ne 'from_start'
303 2408 3455 unless not defined $$line_data{$line_data_map{$_}}
310 4 6355 if ($to_count) { }
314 2806 3549 if (defined do { $$msg_info{'to_address'} }->[0])
337 33 92 unless defined $self->get_from_address
338 32 93 unless defined $self->get_message_id
339 35 90 unless defined $self->get_relay
340 36 89 unless defined $self->get_status
341 11 114 unless defined $self->get_connection_id
342 86 39 if defined $line_data->{'delay'}
345 11 114 if defined $line_data->{'msgid'}
346 86 39 if defined $line_data->{'to'}[0]