lib/Net/DHCPv6/Option/RSOO.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond 33.3% 2 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 8 / 8 Podpod 100% 3 / 3 totaltotal 84.7% 39 / 46 CC 3 SCAR 5.7
CC
3
Cov
88%
new
3.6
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« lib/Net/DHCPv6/Option/UserClass.pm ↑ Summary lib/Net/DHCPv6/Option/RelayMsg.pm »
1 #!/bin/false
2 # ABSTRACT: Relay-Supplied Options option (code 66) -- opaque
3 # PODNAME: Net::DHCPv6::Option::RSOO
4 15 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package Net::DHCPv6::Option::RSOO;
7 15 $Net::DHCPv6::Option::RSOO::VERSION = '0.002';
8 15 ▶use Net::DHCPv6::OptionList;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 15 ▶use Net::DHCPv6::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 15 ▶use parent 'Net::DHCPv6::Option';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 15 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 15 my $EMPTY = q();
13  
14 sub new {
15 2 ▶ my ( $class, %args ) = @_;
Subroutine new: called CC=3 SCAR=12.7
Pod documented
16 2 $args{code} = $OPTION_RSOO;
17 2 ▶ $args{data} = $args{data} // ( $args{option_data} // $EMPTY );
Condition33%2/6
$args{"data"} // ($args{"option_data"} // $EMPTY)
l!l&&r!l&&!r
020
$args{"option_data"} // $EMPTY
l!l&&r!l&&!r
200
MC/DC0%0/3
$args{"data"} // ($args{"option_data"} // $EMPTY)
$args{"data"} $args{"option_data"} $EMPTY
Truth table25%1/4
A // B // C
A= $args{"data"}B= $args{"option_data"}C= $EMPTY
ABCresult
1XX1
01X1
0011
0000
18 2 return $class->SUPER::new( %args );
19 }
20  
21 2 ▶sub option_data { return shift->{data} }
Subroutine option_data: called CC=1 SCAR=0.0
Pod documented
22  
23 sub from_bytes_inner {
24 1 ▶ my ( $class, $code, $payload ) = @_;
Subroutine from_bytes_inner: called CC=1 SCAR=0.0
Pod documented
25 1 return $class->new( option_data => $payload );
26 }
27  
28 15 $Net::DHCPv6::OptionList::OPTION_CLASS{$OPTION_RSOO} = __PACKAGE__;
29 15 1;
30  
31 __END__
« lib/Net/DHCPv6/Option/UserClass.pm ↑ Summary lib/Net/DHCPv6/Option/RelayMsg.pm »