lib/Net/DHCPv6/Option/RapidCommit.pm

filter: Statementstmt 100% 28 / 28 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 100% 40 / 40 CC 2 SCAR 2.0
CC
2
Cov
100%
from_bytes_inner
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Net/DHCPv6/Option/SubscriberId.pm ↑ Summary lib/Net/DHCPv6/X.pm »
1 #!/bin/false
2 # ABSTRACT: Rapid Commit option (code 14) -- zero-length data
3 # PODNAME: Net::DHCPv6::Option::RapidCommit
4 15 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package Net::DHCPv6::Option::RapidCommit;
7 15 $Net::DHCPv6::Option::RapidCommit::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 Net::DHCPv6::X::BadOption;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 15 ▶use parent 'Net::DHCPv6::Option';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 15 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 sub new {
15 4 ▶ my ( $class, %args ) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
16 4 $args{code} = $OPTION_RAPID_COMMIT;
17 4 my $self = $class->SUPER::new( code => $args{code} );
18 4 return bless $self, $class;
19 }
20  
21 sub from_bytes_inner {
22 3 ▶ my ( $class, $code, $payload ) = @_;
Subroutine from_bytes_inner: called CC=2 SCAR=6.9
Pod documented
23 3 ▶ Net::DHCPv6::X::BadOption->throw( message => 'RapidCommit option must be empty' )
Branch: 1 branch
BranchTrueFalseTotal
if length $payload > 0 1 2 3
24 if CORE::length( $payload ) > 0;
25 2 return $class->new;
26 }
27  
28 15 $Net::DHCPv6::OptionList::OPTION_CLASS{$OPTION_RAPID_COMMIT} = __PACKAGE__;
29  
30 15 1;
31  
32 __END__
« lib/Net/DHCPv6/Option/SubscriberId.pm ↑ Summary lib/Net/DHCPv6/X.pm »