Branch Coverage

blib/lib/Net/sFlow.pm
Criterion Covered Total %
branch 1 322 0.3


line true false branch
46 0 1 if ($@)
226 0 0 unless ($subProcessed)
235 0 0 if ($sFlowDatagram{'sFlowVersion'} <= 4) { }
0 0 elsif ($sFlowDatagram{'sFlowVersion'} >= 5) { }
249 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowDatagram{'samplesInPacket'} * 4) { }
0 0 elsif ($sFlowDatagram{'samplesInPacket'} < 0) { }
286 0 0 if ($sFlowSample{'sampleType'} == 1) { }
0 0 elsif ($sFlowSample{'sampleType'} == 2) { }
312 0 0 if ($sFlowSample{'packetDataType'} == 1) { }
0 0 elsif ($sFlowSample{'packetDataType'} == 2) { }
0 0 elsif ($sFlowSample{'packetDataType'} == 3) { }
323 0 0 unless ($subProcessed)
359 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'extendedDataInSample'} * 4) { }
0 0 elsif ($sFlowSample{'extendedDataInSample'} < 0) { }
390 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) { }
406 0 0 unless ($subProcessed)
408 0 0 unless $error =~ /rest of the datagram skipped/
426 0 0 unless ($subProcessed)
428 0 0 unless $error =~ /rest of the datagram skipped/
445 0 0 unless ($subProcessed)
447 0 0 unless $error =~ /rest of the datagram skipped/
465 0 0 unless ($subProcessed)
467 0 0 unless $error =~ /rest of the datagram skipped/
508 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) { }
598 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowDatagram{'samplesInPacket'} * 4) { }
0 0 elsif ($sFlowDatagram{'samplesInPacket'} < 0) { }
641 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) { }
664 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'flowRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'flowRecordsCount'} < 0) { }
699 0 0 unless ($subProcessed)
701 0 0 unless $error =~ /rest of the datagram skipped/
729 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'counterRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'counterRecordsCount'} < 0) { }
763 0 0 unless ($subProcessed)
765 0 0 unless $error =~ /rest of the datagram skipped/
798 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'flowRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'flowRecordsCount'} < 0) { }
833 0 0 unless ($subProcessed)
835 0 0 unless $error =~ /rest of the datagram skipped/
861 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample{'counterRecordsCount'} * 4) { }
0 0 elsif ($sFlowSample{'counterRecordsCount'} < 0) { }
895 0 0 unless ($subProcessed)
897 0 0 unless $error =~ /rest of the datagram skipped/
997 0 0 if (defined $DatagramOrSampleData) { }
999 0 0 if ($IpVersion == 1) { }
0 0 elsif ($IpVersion == 2) { }
1020 0 0 if ($IpVersion == 1) { }
0 0 elsif ($IpVersion == 2) { }
1039 0 0 if ($IpVersion != 1 and $IpVersion != 2)
1041 0 0 if (defined $DatagramOrSampleData) { }
1044 0 0 if ($IpVersion == 0) { }
1065 0 0 if ($IpVersion == 0) { }
1121 0 0 if ($flowTypeEnterprise == 0) { }
1123 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) { }
1134 0 0 unless ($subProcessed)
1167 0 0 unless ($subProcessed)
1184 0 0 unless ($subProcessed)
1200 0 0 unless ($subProcessed)
1216 0 0 unless ($subProcessed)
1233 0 0 unless ($subProcessed)
1250 0 0 unless ($subProcessed)
1265 0 0 unless ($subProcessed)
1280 0 0 unless ($subProcessed)
1295 0 0 unless ($subProcessed)
1314 0 0 unless ($subProcessed)
1372 0 0 if ($counterTypeEnterprise == 0) { }
1374 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 == 7) { }
0 0 elsif ($counterTypeFormat == 1001) { }
0 0 elsif ($counterTypeFormat == 2201) { }
1448 0 0 if ($sFlowDatagram->{'sFlowVersion'} == 5) { }
1474 0 0 if ($sFlowSample->{'HeaderSizeByte'} > 256) { }
0 0 elsif ($sFlowSample->{'HeaderSizeByte'} < 0) { }
1499 0 0 if $tmp == 4
1512 0 0 if ($sFlowSample->{'HeaderType'} eq 8100)
1521 0 0 if ($sFlowSample->{'HeaderType'} eq '0800') { }
0 0 elsif ($sFlowSample->{'HeaderType'} eq '86dd') { }
0 0 elsif ($sFlowSample->{'HeaderType'} eq '0806') { }
1548 0 0 if ($vlanTag == 1)
1552 0 0 if ($sFlowSample->{'HeaderDatalen'} < 64)
1717 0 0 unless ($subProcessed)
1751 0 0 if ($sFlowDatagram->{'sFlowVersion'} == 5)
1771 0 0 unless ($subProcessed)
1789 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample->{'GatewayDestAsPathsCount'} * 4) { }
0 0 elsif ($sFlowSample->{'GatewayDestAsPathsCount'} < 0) { }
1822 0 0 if ($sFlowDatagram->{'sFlowVersion'} >= 4) { }
1841 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowAsPath{'lengthAsList'} * 4) { }
0 0 elsif ($sFlowAsPath{'lengthAsList'} < 0) { }
1884 0 0 if ($sFlowDatagram->{'sFlowVersion'} >= 4)
1896 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample->{'GatewayLengthCommunitiesList'} * 4) { }
0 0 elsif ($sFlowSample->{'GatewayLengthCommunitiesList'} < 0) { }
1962 0 0 if ($sFlowDatagram->{'sFlowVersion'} == 5)
1977 0 0 if ($sFlowSample->{'UserLengthSrcString'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($sFlowSample->{'UserLengthSrcString'} < 0) { }
1999 0 0 if $tmp == 4
2005 0 0 if ($sFlowDatagram->{'sFlowVersion'} == 5)
2020 0 0 if ($sFlowSample->{'UserLengthDestString'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($sFlowSample->{'UserLengthDestString'} < 0) { }
2042 0 0 if $tmp == 4
2076 0 0 if ($sFlowSample->{'UrlLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($sFlowSample->{'UrlLength'} < 0) { }
2098 0 0 if $tmp == 4
2102 0 0 if ($sFlowDatagram->{'sFlowVersion'} == 5)
2110 0 0 if ($sFlowSample->{'UrlHostLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($sFlowSample->{'UrlHostLength'} < 0) { }
2132 0 0 if $tmp == 4
2183 0 0 unless ($subProcessed)
2197 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample->{'MplsInLabelStackCount'} * 4) { }
0 0 elsif ($sFlowSample->{'MplsInLabelStackCount'} < 0) { }
2238 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample->{'MplsOutLabelStackCount'} * 4) { }
0 0 elsif ($sFlowSample->{'MplsOutLabelStackCount'} < 0) { }
2310 0 0 unless ($subProcessed)
2332 0 0 unless ($subProcessed)
2361 0 0 if ($sFlowSample->{'MplsTunnelNameLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($sFlowSample->{'MplsTunnelNameLength'} < 0) { }
2385 0 0 if $tmp == 4
2424 0 0 if ($sFlowSample->{'MplsVcInstanceNameLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($sFlowSample->{'MplsVcInstanceNameLength'} < 0) { }
2448 0 0 if $tmp == 4
2487 0 0 if ($sFlowSample->{'MplsFtnDescrLength'} > length($sFlowDatagramPacked) - $offset) { }
0 0 elsif ($sFlowSample->{'MplsFtnDescrLength'} < 0) { }
2511 0 0 if $tmp == 4
2573 0 0 if (length($sFlowDatagramPacked) - $offset < $sFlowSample->{'VlanTunnelLayerStackCount'} * 4) { }
0 0 elsif ($sFlowSample->{'VlanTunnelLayerStackCount'} < 0) { }
2648 0 0 unless ($have_quad)
2774 0 0 unless ($have_quad)
2829 0 0 unless ($have_quad)
2939 0 0 unless ($have_quad)