Condition Coverage

blib/lib/Virani.pm
Criterion Covered Total %
condition 0 210 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"
244 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 "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 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 "port"
276 0 0 0 $tshark_args[$#tshark_args] ne "and" and $tshark_args[$#tshark_args] ne "or"
549 0 0 0 $type ne "tshark" and $type ne "tcpdump"
0 0 0 $type ne "tshark" and $type ne "tcpdump" and $type ne "bpf2tshark"
600 0 0 0 defined $opts{'padding'} and not $opts{'padding'} =~ /^\d+/
648 0 0 0 $directories ne "" and not -d $directories
657 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'}
801 0 0 0 defined $opts{'padding'} and not $opts{'padding'} =~ /^\d+$/
863 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"
878 0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file
882 0 0 0 defined $opts{'file'} and $opts{'file'} ne $cache_file
1077 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
244 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'
480 0 0 0 not defined $self->{'apikey'} or $self->{'apikey'} eq ""
616 0 0 0 not defined $opts{'set'} or $opts{'set'} eq ""
657 0 0 0 -d $self->{'cache'} || -w $self->{'cache'}
0 0 0 $opts{'auto_no_cache'} || -d $self->{'cache'} && -w $self->{'cache'}
825 0 0 0 not defined $opts{'set'} or $opts{'set'} eq ""
863 0 0 0 defined $opts{'file'} || $opts{'no_cache'}
1173 0 0 0 not defined $string or $string eq ""