Condition Coverage

blib/lib/OpenSMTPd/Filter.pm
Criterion Covered Total %
condition 48 53 90.5


and 3 conditions

line !l l&&!r l&&r condition
113 0 4 2 $params{'on'} && $params{'on'}{'filter'} && $params{'on'}{'filter'}{'smtp-in'} && $params{'on'}{'filter'}{'smtp-in'}{'data-lines'}
130 6 11 58800 not $self->{'_ready'} and &OpenSMTPd::Filter::time() - $now < $timeout
278 2 1 29 defined $suffix and @fields
287 0 7 23 $filter{'subsystem'} eq 'smtp-in' and $filter{'phase'} eq 'data-line'
308 1 3 3 @ret == 1 and ($decisions->[0] || '') eq 'error'
375 3 1 142 $subsystem and $item
4 2 140 $subsystem and $item and my $items = $map->{$subsystem}

or 2 conditions

line l !l condition
78 10 9 $params{'on'} ||= {}
79 5 14 $params{'input'} ||= \*STDIN
80 10 9 $params{'output'} ||= \*STDOUT
91 36 13 shift @{$ms;} || (return)
123 17 0 $fh->blocking // die("Unable to get blocking on input: $!")
124 17 0 $fh->blocking(0) // die("Unable to set input to non-blocking: $!")
131 8 58792 $fh->getline // (next)
138 17 0 $fh->blocking($blocking) // die("Unable to reset blocking on input: $!")
178 142 1 $line //= 'undef'
180 142 1 $type //= 'unsupported'
216 108 1 $report{'event'} // ''
224 101 5 $self->{'_sessions'}{$report{'session'}} ||= {}
281 31 1 $filter{'session'} or ''
308 4 2 $decisions->[0] || ''
332 17 6 $line //= ''
387 119 298 $cb->{$_} || {}