Packet/Layer2.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod 100% 5 / 5 totaltotal 60.0% 21 / 35 CC 2 SCAR 9.2
CC
2
Cov
62%
_is
6.0
layer
2.0
isEth
2.0
CRAP 2.5
« Packet/Layer4.pm ↑ Summary Packet/DescL4.pm »
1 #
2 # $Id: Layer2.pm 2002 2015-02-15 16:50:35Z gomor $
3 #
4 package Net::Packet::Layer2;
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_2 }
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 isEth { shift->_is(NP_LAYER_ETH) }
Subroutine isEth: not called CC=1 SCAR=6.9
Pod documented
18 0 ▶sub isNull { shift->_is(NP_LAYER_NULL) }
Subroutine isNull: not called CC=1 SCAR=6.9
Pod documented
19 0 ▶sub isRaw { shift->_is(NP_LAYER_RAW) }
Subroutine isRaw: not called CC=1 SCAR=6.9
Pod documented
20 0 ▶sub isSll { shift->_is(NP_LAYER_SLL) }
Subroutine isSll: not called CC=1 SCAR=6.9
Pod documented
21  
22 1 1;
23  
24 __END__
« Packet/Layer4.pm ↑ Summary Packet/DescL4.pm »