Condition Coverage

blib/lib/App/HTTP_Proxy_IMP.pm
Criterion Covered Total %
condition 7 56 12.5


and 3 conditions

line !l l&&!r l&&r condition
52 0 0 2 @args and ref $args[0]
63 0 0 0 -d $pcapdir and -w _
75 0 0 0 -f $f and -r _
0 0 0 -f $f and -r _ and -s _
104 0 0 0 @_ || !(-f $f) and open my $fh, '>', $f
126 0 0 2 $filter and @$filter
138 1 0 1 $f =~ s/=(.*)// && $1
155 2 0 0 $self->{'logrx'} && do { my $rx = $self->{'logrx'}; sub { my($level, $msg, $dir, $off, $len) = @_; return unless $level =~ /$rx/; print STDERR "[$level](${dir}:$off,$len) $msg\n"; } }
182 0 0 0 -f '/etc/ssl/certs.pem' and -r _
0 0 0 -f '/etc/ssl/certs.pem' and -r _ and -s _
206 0 0 2 $self->{'addr'} and ref $self->{'addr'} ne 'ARRAY'
233 0 0 0 $self->{'max_connect_per_child'} > 0 and 0 == --$self->{'max_connect_per_child'}

or 2 conditions

line l !l condition
59 2 0 $self = $self->new(@_) or return

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 0 -d $cachedir or mkdir $cachedir, 448
104 0 0 0 @_ || !(-f $f)
390 0 0 0 eval { do { qr/$_[1]/ } } || "bad rx $_[1]"
407 0 0 0 $self->{'logrx'} //= qr/./
408 0 0 0 $self->{'addr'} or @addr
416 0 0 0 $cmd ||= $0