Branch Coverage

blib/lib/Metabrik/Network/Grep.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
52 0 0 unless $self->brik_help_run_undef_arg('from_network', $string)
53 0 0 unless $self->brik_help_run_undef_arg('from_network', $device)
55 0 0 unless $self->open(2, $device, $filter)
59 0 0 unless my $h = $self->next
60 0 0 unless my $simple = 'Net::Frame::Simple'->newFromDump($h)
62 0 0 if (defined $layer and length $layer->payload)
64 0 0 if ($payload =~ /$string/)
79 0 0 unless $self->brik_help_run_undef_arg('from_pcap_file', $string)
80 0 0 unless $self->brik_help_run_undef_arg('from_pcap_file', $pcap_file)
81 0 0 unless $self->brik_help_run_file_not_found('from_pcap_file', $pcap_file)
83 0 0 unless my $fp = 'Metabrik::File::Pcap'->new_from_brik_init($self)
84 0 0 unless $fp->open($pcap_file, 'read', $filter)
85 0 0 unless my $read = $fp->read
90 0 0 unless my $simple = 'Net::Frame::Simple'->newFromDump($h)
92 0 0 if (defined $layer and length $layer->payload)
94 0 0 if ($payload =~ /$string/)