Branch Coverage

blib/lib/Net/sFlow.pm
Criterion Covered Total %
branch 0 292 0.0


line true false branch
219 0 0 unless ($subProcessed)
228 0 0 if ($sFlowDatagram{'sFlowVersion'} <= 4) { }
0 0 elsif ($sFlowDatagram{'sFlowVersion'} >= 5) { }
242 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowDatagram{'samplesInPacket'} * 4) { }
0 0 elsif ($sFlowDatagram{'samplesInPacket'} < 0) { }
279 0 0 if ($sFlowSample{'sampleType'} == 1) { }
0 0 elsif ($sFlowSample{'sampleType'} == 2) { }
305 0 0 if ($sFlowSample{'packetDataType'} == 1) { }
0 0 elsif ($sFlowSample{'packetDataType'} == 2) { }
0 0 elsif ($sFlowSample{'packetDataType'} == 3) { }
316 0 0 unless ($subProcessed)
352 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'extendedDataInSample'} * 4) { }
0 0 elsif ($sFlowSample{'extendedDataInSample'} < 0) { }
383 0 0 if ($extendedDataType == 1) { }
0 0 elsif ($extendedDataType == 2) { }
0 0 elsif ($extendedDataType == 3) { }
0 0 elsif ($extendedDataType == 4) { }
0 0 elsif ($extendedDataType == 5) { }
399 0 0 unless ($subProcessed)
419 0 0 unless ($subProcessed)
438 0 0 unless ($subProcessed)
458 0 0 unless ($subProcessed)
501 0 0 if ($sFlowSample{'countersVersion'} == 1) { }
0 0 elsif ($sFlowSample{'countersVersion'} == 2) { }
0 0 elsif ($sFlowSample{'countersVersion'} == 3) { }
0 0 elsif ($sFlowSample{'countersVersion'} == 4) { }
0 0 elsif ($sFlowSample{'countersVersion'} == 5) { }
0 0 elsif ($sFlowSample{'countersVersion'} == 6) { }
0 0 elsif ($sFlowSample{'countersVersion'} == 7) { }
591 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowDatagram{'samplesInPacket'} * 4) { }
0 0 elsif ($sFlowDatagram{'samplesInPacket'} < 0) { }
634 0 0 if ($sFlowSample{'sampleTypeEnterprise'} == 0 and $sFlowSample{'sampleTypeFormat'} == 1) { }
0 0 elsif ($sFlowSample{'sampleTypeEnterprise'} == 0 and $sFlowSample{'sampleTypeFormat'} == 2) { }
0 0 elsif ($sFlowSample{'sampleTypeEnterprise'} == 0 and $sFlowSample{'sampleTypeFormat'} == 3) { }
0 0 elsif ($sFlowSample{'sampleTypeEnterprise'} == 0 and $sFlowSample{'sampleTypeFormat'} == 4) { }
0 0 elsif ($sFlowSample{'sampleTypeEnterprise'} == 1991 and $sFlowSample{'sampleTypeFormat'} == 1) { }
657 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'flowRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'flowRecordsCount'} < 0) { }
692 0 0 unless ($subProcessed)
722 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'counterRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'counterRecordsCount'} < 0) { }
756 0 0 unless ($subProcessed)
791 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'flowRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'flowRecordsCount'} < 0) { }
826 0 0 unless ($subProcessed)
854 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'counterRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'counterRecordsCount'} < 0) { }
888 0 0 unless ($subProcessed)
990 0 0 if (defined $DatagramOrSampleData) { }
992 0 0 if ($IpVersion == 1) { }
0 0 elsif ($IpVersion == 2) { }
1013 0 0 if ($IpVersion == 1) { }
0 0 elsif ($IpVersion == 2) { }
1032 0 0 if ($IpVersion != 1 and $IpVersion != 2)
1034 0 0 if (defined $DatagramOrSampleData) { }
1037 0 0 if ($IpVersion == 0) { }
1058 0 0 if ($IpVersion == 0) { }
1114 0 0 if ($flowTypeEnterprise == 0) { }
1116 0 0 if ($flowTypeFormat == 1) { }
0 0 elsif ($flowTypeFormat == 1001) { }
0 0 elsif ($flowTypeFormat == 2) { }
0 0 elsif ($flowTypeFormat == 3) { }
0 0 elsif ($flowTypeFormat == 4) { }
0 0 elsif ($flowTypeFormat == 1002) { }
0 0 elsif ($flowTypeFormat == 1003) { }
0 0 elsif ($flowTypeFormat == 1004) { }
0 0 elsif ($flowTypeFormat == 1005) { }
0 0 elsif ($flowTypeFormat == 1006) { }
0 0 elsif ($flowTypeFormat == 1007) { }
0 0 elsif ($flowTypeFormat == 1008) { }
0 0 elsif ($flowTypeFormat == 1009) { }
0 0 elsif ($flowTypeFormat == 1010) { }
0 0 elsif ($flowTypeFormat == 1011) { }
0 0 elsif ($flowTypeFormat == 1012) { }
1127 0 0 unless ($subProcessed)
1160 0 0 unless ($subProcessed)
1177 0 0 unless ($subProcessed)
1193 0 0 unless ($subProcessed)
1209 0 0 unless ($subProcessed)
1226 0 0 unless ($subProcessed)
1243 0 0 unless ($subProcessed)
1258 0 0 unless ($subProcessed)
1273 0 0 unless ($subProcessed)
1288 0 0 unless ($subProcessed)
1307 0 0 unless ($subProcessed)
1365 0 0 if ($counterTypeEnterprise == 0) { }
1367 0 0 if ($counterTypeFormat == 1) { }
0 0 elsif ($counterTypeFormat == 2) { }
0 0 elsif ($counterTypeFormat == 3) { }
0 0 elsif ($counterTypeFormat == 4) { }
0 0 elsif ($counterTypeFormat == 5) { }
0 0 elsif ($counterTypeFormat == 1001) { }
1433 0 0 if ($$sFlowDatagram{'sFlowVersion'} == 5) { }
1459 0 0 if ($$sFlowSample{'HeaderSizeByte'} > 256) { }
0 0 elsif ($$sFlowSample{'HeaderSizeByte'} < 0) { }
1484 0 0 if $tmp == 4
1497 0 0 if ($$sFlowSample{'HeaderType'} eq '8100')
1506 0 0 if ($$sFlowSample{'HeaderType'} eq '0800') { }
0 0 elsif ($$sFlowSample{'HeaderType'} eq '86dd') { }
0 0 elsif ($$sFlowSample{'HeaderType'} eq '0806') { }
1533 0 0 if ($vlanTag == 1)
1537 0 0 if ($$sFlowSample{'HeaderDatalen'} < 64)
1715 0 0 unless ($subProcessed)
1749 0 0 if ($$sFlowDatagram{'sFlowVersion'} == 5)
1769 0 0 unless ($subProcessed)
1787 0 0 if (length($sFlowDatagramPacked) - $offset < $$sFlowSample{'GatewayDestAsPathsCount'} * 4) { }
0 0 elsif ($$sFlowSample{'GatewayDestAsPathsCount'} < 0) { }
1820 0 0 if ($$sFlowDatagram{'sFlowVersion'} >= 4) { }
1839 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowAsPath{'lengthAsList'} * 4) { }
0 0 elsif ($sFlowAsPath{'lengthAsList'} < 0) { }
1882 0 0 if ($$sFlowDatagram{'sFlowVersion'} >= 4)
1894 0 0 if (length($sFlowDatagramPacked) - $offset < $$sFlowSample{'GatewayLengthCommunitiesList'} * 4) { }
0 0 elsif ($$sFlowSample{'GatewayLengthCommunitiesList'} < 0) { }
1960 0 0 if ($$sFlowDatagram{'sFlowVersion'} == 5)
1975 0 0 if ($$sFlowSample{'UserLengthSrcString'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($$sFlowSample{'UserLengthSrcString'} < 0) { }
1997 0 0 if $tmp == 4
2003 0 0 if ($$sFlowDatagram{'sFlowVersion'} == 5)
2018 0 0 if ($$sFlowSample{'UserLengthDestString'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($$sFlowSample{'UserLengthDestString'} < 0) { }
2040 0 0 if $tmp == 4
2074 0 0 if ($$sFlowSample{'UrlLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($$sFlowSample{'UrlLength'} < 0) { }
2096 0 0 if $tmp == 4
2100 0 0 if ($$sFlowDatagram{'sFlowVersion'} == 5)
2108 0 0 if ($$sFlowSample{'UrlHostLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($$sFlowSample{'UrlHostLength'} < 0) { }
2130 0 0 if $tmp == 4
2181 0 0 unless ($subProcessed)
2195 0 0 if (length($sFlowDatagramPacked) - $offset < $$sFlowSample{'MplsInLabelStackCount'} * 4) { }
0 0 elsif ($$sFlowSample{'MplsInLabelStackCount'} < 0) { }
2236 0 0 if (length($sFlowDatagramPacked) - $offset < $$sFlowSample{'MplsOutLabelStackCount'} * 4) { }
0 0 elsif ($$sFlowSample{'MplsOutLabelStackCount'} < 0) { }
2308 0 0 unless ($subProcessed)
2330 0 0 unless ($subProcessed)
2359 0 0 if ($$sFlowSample{'MplsTunnelNameLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($$sFlowSample{'MplsTunnelNameLength'} < 0) { }
2383 0 0 if $tmp == 4
2422 0 0 if ($$sFlowSample{'MplsVcInstanceNameLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($$sFlowSample{'MplsVcInstanceNameLength'} < 0) { }
2446 0 0 if $tmp == 4
2485 0 0 if ($$sFlowSample{'MplsFtnDescrLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($$sFlowSample{'MplsFtnDescrLength'} < 0) { }
2509 0 0 if $tmp == 4
2571 0 0 if (length($sFlowDatagramPacked) - $offset < $$sFlowSample{'VlanTunnelLayerStackCount'} * 4) { }
0 0 elsif ($$sFlowSample{'VlanTunnelLayerStackCount'} < 0) { }