Branch Coverage

blib/lib/Metabrik/File/Pcap.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
55 0 0 if ($self->_dump)
60 0 0 unless $self->brik_help_run_undef_arg("open", $mode)
63 0 0 if ($mode eq 'read') { }
0 0 elsif ($mode eq 'write') { }
65 0 0 unless $self->brik_help_run_undef_arg("open", $file)
66 0 0 unless $self->brik_help_run_file_not_found("open", $file)
74 0 0 unless $dump->start
78 0 0 unless $self->brik_help_run_undef_arg("open", $file)
86 0 0 unless $dump->start
99 0 0 if (defined $dump)
112 0 0 if ($self->is_eof)
117 0 0 unless $self->brik_help_run_undef_arg("open", $dump)
135 0 0 unless $self->brik_help_run_undef_arg("open", $dump)
141 0 0 if ++$read_count == $count
158 0 0 unless $self->brik_help_run_undef_arg("open", $dump)
159 0 0 unless $self->brik_help_run_undef_arg("write", $frames)
160 0 0 unless my $ref = $self->brik_help_run_invalid_arg("write", $frames, "ARRAY", "HASH")
163 0 0 $ref eq 'ARRAY' ? :
164 0 0 if ($ref eq 'ARRAY') { }
165 0 0 if (@$frames <= 0)
168 0 0 unless (exists $first->{'raw'} and exists $first->{'timestamp'} and exists $first->{'firstLayer'})
175 0 0 unless (exists $first->{'raw'} and exists $first->{'timestamp'} and exists $first->{'firstLayer'})
182 0 0 if ($ref eq 'ARRAY') { }