Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
168 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"
174 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"
261 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"
293 0 0 0 $tshark_args[$#tshark_args] ne "and" and $tshark_args[$#tshark_args] ne "or"
580 0 0 0 $type ne "tshark" and $type ne "tcpdump"
0 0 0 $type ne "tshark" and $type ne "tcpdump" and $type ne "bpf2tshark"
631 0 0 0 defined $opts{'padding'} and not $opts{'padding'} =~ /^\d+/
679 0 0 0 $directories ne "" and not -d $directories
688 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'}
859 0 0 0 defined $opts{'padding'} and not $opts{'padding'} =~ /^\d+$/
916 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"
928 0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file
932 0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file
1131 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
261 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'
511 0 0 0 not defined $self->{'apikey'} or $self->{'apikey'} eq ""
647 0 0 0 not defined $opts{'set'} or $opts{'set'} eq ""
688 0 0 0 -d $self->{'cache'} || -w $self->{'cache'}
0 0 0 $opts{'auto_no_cache'} || -d $self->{'cache'} && -w $self->{'cache'}
822 0 0 0 not defined $opts{'set'} or $opts{'set'} eq ""
916 0 0 0 defined $opts{'file'} || $opts{'no_cache'}
1227 0 0 0 not defined $string or $string eq ""