Condition Coverage

blib/lib/Parse/Netstat/Search.pm
Criterion Covered Total %
condition 43 51 84.3


and 3 conditions

line !l l&&!r l&&r condition
246 0 20 140 defined $res->[2]{'active_conns'}[$res_int]{'proto'} and $res->[2]{'active_conns'}[$res_int]{'proto'} ne 'unix'
276 80 20 40 $foreign_host eq '*' and $protocol =~ /^[Uu][Dd][Pp]/
100 40 0 $foreign_host eq '*' and $protocol =~ /^[Uu][Dd][Pp]/ and not defined $state
283 140 0 0 not defined $state and $protocol =~ /^[Uu][Dd][Pp]/
318 40 2 54 defined $cidr and not $cidr_meet
322 23 23 8 $foreign_host ne '*' and eval { do { Net::CIDR::cidrlookup($foreign_host, $cidr) } }
8 32 6 $local_host ne '*' and eval { do { Net::CIDR::cidrlookup($local_host, $cidr) } }
339 112 20 8 $port_require and defined $self->{'ports'}{$foreign_port} || defined $self->{'ports'}{$local_port}
350 119 10 11 $protocol_require and defined $self->{'protocols'}{$protocol_search}
358 112 20 8 $state_require and defined $self->{'states'}{$state_search}
366 8 10 122 $port_meet and $protocol_meet
18 28 94 $port_meet and $protocol_meet and $cidr_meet
38 13 81 $port_meet and $protocol_meet and $cidr_meet and $state_meet

or 3 conditions

line l !l&&r !l&&!r condition
209 0 0 20 ref $res ne 'ARRAY' or not defined $res->[2]
0 0 20 ref $res ne 'ARRAY' or not defined $res->[2] or not defined $res->[2]{'active_conns'}
322 8 7 39 $foreign_host ne '*' and eval { do { Net::CIDR::cidrlookup($foreign_host, $cidr) } } or $local_host ne '*' and eval { do { Net::CIDR::cidrlookup($local_host, $cidr) } }
339 12 8 8 defined $self->{'ports'}{$foreign_port} || defined $self->{'ports'}{$local_port}