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.003';
8 15 ▶use Net::DHCPv6::OptionList ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9 15 ▶use Net::DHCPv6::Constants qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
10 $OPTION_RSOO
11 15 );
12 15 ▶use parent 'Net::DHCPv6::Option';
Subroutine BEGIN: called CC=1 SCAR=0.0
13 15 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 15 my $EMPTY = q();
15  
16 2 ▶sub new {
Subroutine new: called CC=3 SCAR=12.7
Pod documented
17 2 my ( $class, %args ) = @_;
18 2 $args{code} = $OPTION_RSOO;
19 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
20 2 return $class->SUPER::new( %args );
21 }
22  
23 2 ▶sub option_data { return shift->{data} }
Subroutine option_data: called CC=1 SCAR=0.0
Pod documented
24  
25 1 ▶sub from_bytes_inner {
Subroutine from_bytes_inner: called CC=1 SCAR=0.0
Pod documented
26 1 my ( $class, $code, $payload ) = @_;
27 1 return $class->new( option_data => $payload );
28 }
29  
30 15 $Net::DHCPv6::OptionList::OPTION_CLASS{$OPTION_RSOO} = __PACKAGE__;
31 15 1;
32  
33 __END__
« lib/Net/DHCPv6/Option/UserClass.pm ↑ Summary lib/Net/DHCPv6/Option/RelayMsg.pm »