Packet/Layer4.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 37.5% 3 / 8 Podpod 100% 4 / 4 totaltotal 62.5% 20 / 32 CC 2 SCAR 9.4
CC
2
Cov
65%
_is
6.0
layer
2.0
isTcp
2.0
CRAP 2.6
« Packet/Layer.pm ↑ Summary Packet/Layer2.pm »
1 #
2 # $Id: Layer4.pm 2002 2015-02-15 16:50:35Z gomor $
3 #
4 package Net::Packet::Layer4;
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 require Net::Packet::Layer;
9 1 our @ISA = qw(Net::Packet::Layer);
10 1 __PACKAGE__->cgBuildIndices;
11  
12 1 ▶use Net::Packet::Consts qw(:layer);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub layer { NP_LAYER_N_4 }
Subroutine layer: not called CC=1 SCAR=6.9
Pod documented
15  
16 0 ▶sub _is { (shift->is eq shift()) ? 1 : 0 }
Subroutine _is: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
(shift())->is eq shift() ? : 0 0 0
17 0 ▶sub isTcp { shift->_is(NP_LAYER_TCP) }
Subroutine isTcp: not called CC=1 SCAR=6.9
Pod documented
18 0 ▶sub isUdp { shift->_is(NP_LAYER_UDP) }
Subroutine isUdp: not called CC=1 SCAR=6.9
Pod documented
19 0 ▶sub isIcmpv4 { shift->_is(NP_LAYER_ICMPv4) }
Subroutine isIcmpv4: not called CC=1 SCAR=6.9
Pod documented
20  
21 1 1;
22  
23 __END__
« Packet/Layer.pm ↑ Summary Packet/Layer2.pm »