Branch Coverage

blib/lib/Net/Flow.pm
Criterion Covered Total %
branch 33 190 17.3


line true false branch
90 0 0 unless defined $$InputHeaderRef{'TemplateResendSecs'}
94 0 0 unless defined $$InputHeaderRef{'_header_len'}
103 0 0 if ($$InputHeaderRef{'TemplateResendSecs'})
111 0 0 if ($$template_info{'hash'} ne $hash)
126 0 0 if (keys %{$$InputHeaderRef{'_template_info'};} > 50)
129 0 0 if (time - $sent > $$InputHeaderRef{'TemplateResendSecs'})
136 0 0 !defined($$template_info{'_template_sent'}) ? :
148 0 0 if defined $ErrorRef
151 0 0 if ($sendTemplates)
153 0 0 if ref $template_info eq 'HASH'
164 0 0 unless (defined $$FlowRef{'SetId'})
174 0 0 if ($$FlowRef{'SetId'} >= 256) { }
182 0 0 if (defined $DecodeTemplateRef) { }
203 0 0 if defined $PackRef
206 0 0 if defined $ErrorRef
210 0 0 unless (@FlowPacks)
226 0 0 unless (defined $$FlowPackRef{'Pack'})
243 0 0 if (length($$FlowPackRef{'Pack'}) + $TotalLength > $MaxDatagram)
258 0 0 if $$FlowPackRef{'SetId'} >= 256
264 0 0 if ($FlowCount > 0)
282 0 0 if ($$InputHeaderRef{'VersionNum'} == 10) { }
288 0 0 if ($$InputHeaderRef{'VersionNum'} != 9)
289 0 0 if (not defined $$InputHeaderRef{'VersionNum'}) { }
342 0 0 if ($$HeaderRef{'VersionNum'} == 9) { }
0 0 elsif ($$HeaderRef{'VersionNum'} == 10) { }
383 0 0 if (defined $$FlowRef{$$TemplateArrayRef{'Id'}}) { }
389 0 0 if (ref $$FlowRef{$$TemplateArrayRef{'Id'}}) { }
407 0 0 if ($$TemplateArrayRef{'Length'} == 65535) { }
415 0 0 if ($Length < 255) { }
445 0 0 if ($a =~ /^\d+$/ and $b =~ /^\d+$/) { }
459 0 0 if ($$TemplateArrayRef{'Length'} == 65535) { }
492 0 0 unless (defined $$TemplateRef{'TemplateId'})
497 0 0 unless (defined $$TemplateRef{'SetId'})
502 0 0 if ($$HeaderRef{'VersionNum'} == 9) { }
0 0 elsif ($$HeaderRef{'VersionNum'} == 10) { }
504 0 0 if ($$TemplateRef{'SetId'} != 0 and $$TemplateRef{'SetId'} != 1)
514 0 0 if ($$TemplateRef{'SetId'} != 2 and $$TemplateRef{'SetId'} != 3)
524 0 0 if $#Errors >= 0
528 0 0 if defined $$TemplateRef{'ScopeCount'}
531 0 0 unless defined $$TemplateRef{'FieldCount'}
538 0 0 if ($$TemplateRef{'SetId'} == 0) { }
0 0 elsif ($$TemplateRef{'SetId'} == 1) { }
0 0 elsif ($$TemplateRef{'SetId'} == 2) { }
0 0 elsif ($$TemplateRef{'SetId'} == 3) { }
560 0 0 if ($$TemplateRef{'FieldCount'} == 0) { }
580 0 0 if ($$TemplateRef{'FieldCount'} == 0) { }
600 0 0 if ($$TemplateRef{'FieldCount'} > 0)
608 0 0 if ($$Ref{'Id'} =~ /([\d]+)\.([\d]+)/) { }
647 0 1 if (ref $NetFlowPktRef ne 'SCALAR')
660 0 1 if (defined $InputTemplateRef or ref $InputTemplateRef eq 'ARRAY') { }
0 1 elsif (defined $InputTemplateRef) { }
681 1 0 if ($$NetFlowHeaderRef{'VersionNum'} == 10) { }
0 0 elsif ($$NetFlowHeaderRef{'VersionNum'} == 9) { }
0 0 elsif ($$NetFlowHeaderRef{'VersionNum'} == 5) { }
0 0 elsif ($$NetFlowHeaderRef{'VersionNum'} == 8) { }
689 0 4 if (length($$NetFlowPktRef) - $OffSet < 4)
691 0 0 if ($FlowCount ne $$NetFlowHeaderRef{'Count'})
711 2 2 if ($$FlowSetHeaderRef{'SetId'} >= 256)
715 0 2 unless (defined $DecodeTemplateRef)
718 0 0 if defined $$FlowSetHeaderRef{'Length'}
733 3 4 if ($$FlowSetHeaderRef{'Length'} - ($OffSet - $FlowSetOffSet) < 4)
744 2 2 if ($$FlowSetHeaderRef{'SetId'} < 256) { }
748 0 2 if (defined $Error)
757 1 0 if $$_{'TemplateId'} ne $$TemplateRef{'TemplateId'}
769 0 2 if (defined $Error)
794 0 0 if (length($$NetFlowPktRef) - $OffSet < 4)
796 0 0 if ($FlowCount ne $$NetFlowHeaderRef{'Count'})
816 0 0 if ($$FlowSetHeaderRef{'SetId'} >= 256)
820 0 0 unless (defined $DecodeTemplateRef)
823 0 0 if defined $$FlowSetHeaderRef{'Length'}
838 0 0 if ($$FlowSetHeaderRef{'Length'} - ($OffSet - $FlowSetOffSet) < 4)
849 0 0 if ($$FlowSetHeaderRef{'SetId'} < 256) { }
853 0 0 if (defined $Error)
862 0 0 if $$_{'TemplateId'} ne $$TemplateRef{'TemplateId'}
874 0 0 if (defined $Error)
902 0 0 if (defined $Error)
941 2 2 if $$_{'TemplateId'} eq $TemplateId
947 0 2 unless (defined $DecodeTemplateRef)
969 1 0 if ($NetFlowHeader{'VersionNum'} == 10) { }
0 0 elsif ($NetFlowHeader{'VersionNum'} == 9) { }
0 0 elsif ($NetFlowHeader{'VersionNum'} == 8) { }
0 0 elsif ($NetFlowHeader{'VersionNum'} == 5) { }
1037 1 1 if ($$FlowSetHeaderRef{'SetId'} == 0 or $$FlowSetHeaderRef{'SetId'} == 2) { }
1 0 elsif ($$FlowSetHeaderRef{'SetId'} == 3) { }
0 0 elsif ($$FlowSetHeaderRef{'SetId'} == 1) { }
1058 1 0 if ($Template{'FieldCount'} != 0)
1081 0 2 unless defined $Template{'FieldCount'}
1085 11 0 if ($$FlowSetHeaderRef{'SetId'} <= 3)
1094 11 0 if ($$VerNumRef >= 10)
1096 10 1 if ($Template{'Template'}[$n]{'Id'} & 32768)
1128 2 0 if (defined $$TemplateRef{'TemplateId'}) { }
1144 7 4 if ($$ref{'Length'} == 65535) { }
1150 0 7 if ($Length == 255)
1172 0 11 if (defined $Flow{$$ref{'Id'}}) { }
1176 0 0 unless ref $Flow{$$ref{'Id'}}