Branch Coverage

blib/lib/Netflow/Parser.pm
Criterion Covered Total %
branch 19 50 38.0


line true false branch
89 1 0 unless (ref $self)
94 1 0 if ($opts{'flow_cb'})
104 0 1 if %opts
163 0 2 unless ($self->{'templates'}{$template_id})
164 0 0 if $self->{'verbose'}
202 0 1 unless eval { do { $version == 9 } }
216 0 1 if scalar @flowsets > length $packet
224 0 1 if ($flowset_id == 0) { }
0 1 elsif ($flowset_id == 1) { }
1 0 elsif ($flowset_id > 255) { }
225 0 0 if ($flowset)
227 0 0 if (@tmpl) { }
238 0 0 if $self->{'verbose'}
244 1 0 if (scalar @flows) { }
253 0 0 if $self->{'verbose'}
285 0 1 unless (defined $self->{'templates'}{$flowset_id})
286 0 0 if $self->{'verbose'}
311 27 0 if $cb
334 0 1 unless defined $template_id and defined $fld_count
337 0 1 if $template_id < 255 or $template_id > 300
349 0 1 $self->{'templates'}{$template_id} ? :
1 0 if $self->{'verbose'}
418 1 0 unless (ref $self)
480 1 0 unless (ref $self)
485 0 6 unless $opts{$_}