Packet/Layer3.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.0% 3 / 10 Podpod 100% 6 / 6 totaltotal 53.6% 22 / 41 CC 3 SCAR 11.3
CC
3
Cov
52%
_is
6.0
isIp
6.0
layer
2.0
CRAP 3.1
« Packet/PPP.pm ↑ Summary Packet/Layer.pm »
1 #
2 # $Id: Layer3.pm 2002 2015-02-15 16:50:35Z gomor $
3 #
4 package Net::Packet::Layer3;
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_3 }
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 isIp { my $self = shift; $self->isIpv4 || $self->isIpv6 }
Subroutine isIp: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$self->isIpv4 or $self->isIpv6 0 0 0
18 0 ▶sub isIpv4 { shift->_is(NP_LAYER_IPv4) }
Subroutine isIpv4: not called CC=1 SCAR=6.9
Pod documented
19 0 ▶sub isIpv6 { shift->_is(NP_LAYER_IPv6) }
Subroutine isIpv6: not called CC=1 SCAR=6.9
Pod documented
20 0 ▶sub isArp { shift->_is(NP_LAYER_ARP) }
Subroutine isArp: not called CC=1 SCAR=6.9
Pod documented
21 0 ▶sub isVlan { shift->_is(NP_LAYER_VLAN) }
Subroutine isVlan: not called CC=1 SCAR=6.9
Pod documented
22  
23 1 1;
24  
25 __END__
« Packet/PPP.pm ↑ Summary Packet/Layer.pm »