Condition Coverage

blib/lib/Virani.pm
Criterion Covered Total %
condition 0 222 0.0


and 3 conditions

line !l l&&!r l&&r condition
158 0 0 0 defined $opts{'allowed_subnets'} and ref $opts{'allowed_subnets'} eq "ARRAY"
0 0 0 defined $opts{'allowed_subnets'} and ref $opts{'allowed_subnets'} ne "ARRAY"
164 0 0 0 defined $opts{'sets'} and ref $opts{'sets'} eq "HASH"
0 0 0 defined $opts{'sets'} and ref $opts{'allowed_subnets'} ne "HASH"
251 0 0 0 not defined $previous[0] and $item eq 'src' || $item eq 'dst'
0 0 0 not defined $previous[0] and $item eq "ether"
0 0 0 defined $previous[0] and $previous[0] eq "ether"
0 0 0 defined $previous[0] and $previous[0] eq "ether" and $item eq 'src' || $item eq 'dst' || $item eq 'host'
0 0 0 not defined $previous[0] and $item eq 'port' || $item eq 'host'
0 0 0 defined $previous[0] and $previous[0] eq 'src' || $previous[0] eq 'dst'
0 0 0 defined $previous[0] and $previous[0] eq 'src' || $previous[0] eq 'dst' and $item eq 'host' || $item eq 'port'
0 0 0 defined $previous[0] and defined $previous[1]
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "ether"
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "ether" and $previous[1] eq "src"
0 0 0 defined $previous[0] and defined $previous[1]
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "ether"
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "ether" and $previous[1] eq "dst"
0 0 0 defined $previous[0] and defined $previous[1]
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "ether"
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "ether" and $previous[1] eq "host"
0 0 0 defined $previous[0] and defined $previous[1]
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "src"
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "src" and $previous[1] eq "port"
0 0 0 defined $previous[0] and defined $previous[1]
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "dst"
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "dst" and $previous[1] eq "port"
0 0 0 defined $previous[0] and defined $previous[1]
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "src"
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "src" and $previous[1] eq "host"
0 0 0 defined $previous[0] and defined $previous[1]
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "dst"
0 0 0 defined $previous[0] and defined $previous[1] and $previous[0] eq "dst" and $previous[1] eq "host"
0 0 0 defined $previous[0] and not defined $previous[1]
0 0 0 defined $previous[0] and not defined $previous[1] and $previous[0] eq "port"
0 0 0 defined $previous[0] and not defined $previous[1]
0 0 0 defined $previous[0] and not defined $previous[1] and $previous[0] eq "host"
0 0 0 defined $previous[0] and not defined $previous[1]
0 0 0 defined $previous[0] and not defined $previous[1] and $previous[0] eq "src"
0 0 0 defined $previous[0] and not defined $previous[1]
0 0 0 defined $previous[0] and not defined $previous[1] and $previous[0] eq "dst"
283 0 0 0 $tshark_args[$#tshark_args] ne "and" and $tshark_args[$#tshark_args] ne "or"
570 0 0 0 $type ne "tshark" and $type ne "tcpdump"
0 0 0 $type ne "tshark" and $type ne "tcpdump" and $type ne "bpf2tshark"
621 0 0 0 defined $opts{'padding'} and not $opts{'padding'} =~ /^\d+/
669 0 0 0 $directories ne "" and not -d $directories
678 0 0 0 -d $self->{'cache'} && -w $self->{'cache'}
0 0 0 $opts{'auto_no_cache'} and not -d $self->{'cache'} && -w $self->{'cache'}
0 0 0 $opts{'auto_no_cache'} and -d $self->{'cache'} || -w $self->{'cache'}
822 0 0 0 defined $opts{'padding'} and not $opts{'padding'} =~ /^\d+$/
884 0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file
0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file and not $opts{'no_cache'}
0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file and not $opts{'no_cache'} and -f $cache_file
0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file and not $opts{'no_cache'} and -f $cache_file and -f $cache_file . ".json"
0 0 0 not defined $opts{'file'} || $opts{'no_cache'} and -f $cache_file
0 0 0 not defined $opts{'file'} || $opts{'no_cache'} and -f $cache_file and -f $cache_file . ".json"
899 0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file
903 0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file
1098 0 0 0 defined $opts{'file'} and $cache_file ne $opts{'file'}

or 3 conditions

line l !l&&r !l&&!r condition
62 0 0 0 $@ or not defined $raw_toml
251 0 0 0 $item eq "tcp" or $item eq "udp"
0 0 0 $item eq "tcp" or $item eq "udp" or $item eq "icmp"
0 0 0 $item eq "or" or $item eq "and"
0 0 0 $item eq 'src' || $item eq 'dst'
0 0 0 $item eq 'src' || $item eq 'dst' || $item eq 'host'
0 0 0 $item eq 'port' || $item eq 'host'
0 0 0 $previous[0] eq 'src' || $previous[0] eq 'dst'
0 0 0 $item eq 'host' || $item eq 'port'
501 0 0 0 not defined $self->{'apikey'} or $self->{'apikey'} eq ""
637 0 0 0 not defined $opts{'set'} or $opts{'set'} eq ""
678 0 0 0 -d $self->{'cache'} || -w $self->{'cache'}
0 0 0 $opts{'auto_no_cache'} || -d $self->{'cache'} && -w $self->{'cache'}
846 0 0 0 not defined $opts{'set'} or $opts{'set'} eq ""
884 0 0 0 defined $opts{'file'} || $opts{'no_cache'}
1194 0 0 0 not defined $string or $string eq ""