Packet/DescL2.pm

filter: Statementstmt 64.2% 9 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 66.6% 12 / 18 CC 1 SCAR 2.2
CC
1
Cov
64%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Packet/Env.pm ↑ Summary Packet/CDP/Type.pm »
1 #
2 # $Id: DescL2.pm 2002 2015-02-15 16:50:35Z gomor $
3 #
4 package Net::Packet::DescL2;
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 require Net::Packet::Desc;
9 our @ISA = qw(Net::Packet::Desc);
10 __PACKAGE__->cgBuildIndices;
11  
12 1 ▶no strict 'vars';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 require Net::Write::Layer2;
15  
16 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
17 0 my $self = shift->SUPER::new(@_);
18  
19 0 my $nwrite = Net::Write::Layer2->new(
20 dev => $self->[$__dev],
21 );
22 0 $nwrite->open;
23  
24 0 $self->[$___io] = $nwrite;
25  
26 0 $self;
27 }
28  
29 1;
30  
31 __END__
« Packet/Env.pm ↑ Summary Packet/CDP/Type.pm »