DNS/RR/CDS.pm

filter: Statementstmt 100% 23 / 23 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 37 / 37 CC 4 SCAR 6.4
CC
4
Cov
100%
algorithm
3.0
digtype
2.0
BEGIN
1.0
CRAP 1.9
« DNS/RR/CDNSKEY.pm ↑ Summary DNS/RR/RT.pm »
1 package Net::DNS::RR::CDS;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 our $VERSION = (qw$Id: CDS.pm 2003 2025-01-21 12:06:06Z willem $)[2];
6  
7 1 ▶use base qw(Net::DNS::RR::DS);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10 =head1 NAME
11  
12 Net::DNS::RR::CDS - DNS CDS resource record
13  
14 =cut
15  
16 1 ▶use integer;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19 14 ▶sub algorithm {
Subroutine algorithm: called CC=3 SCAR=11.0
Pod documented
20 14 my ( $self, $arg ) = @_;
21 14 ▶ return $self->SUPER::algorithm($arg) if $arg;
Branch: 1 branch
BranchTrueFalseTotal
if $arg 6 8 14
22 8 ▶ return $self->SUPER::algorithm() unless defined $arg;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $arg 6 2 8
23 2 @{$self}{qw(keytag algorithm digtype digestbin)} = ( 0, 0, 0, chr(0) );
24 2 return;
25 }
26  
27  
28 12 ▶sub digtype {
Subroutine digtype: called CC=2 SCAR=6.9
Pod documented
29 12 my ( $self, $arg ) = @_;
30 12 ▶ return $self->SUPER::digtype($arg) if $arg;
Branch: 1 branch
BranchTrueFalseTotal
if $arg 5 7 12
31 7 return $self->SUPER::digtype();
32 }
33  
34  
35 1 1;
36 __END__
« DNS/RR/CDNSKEY.pm ↑ Summary DNS/RR/RT.pm »