File Coverage

blib/lib/Net/DNS/RR/CDS.pm
Criterion Covered Total %
statement 21 21 100.0
branch 6 6 100.0
path n/a
condition n/a
subroutine 6 6 100.0
pod 2 2 100.0
total 35 35 100.0


line stmt bran path cond sub pod time code
1               package Net::DNS::RR::CDS;
2                
3 1       1   5 use strict;
  1           2  
  1           31  
4 1       1   4 use warnings;
  1           1  
  1           83  
5               our $VERSION = (qw$Id: CDS.pm 2003 2025-01-21 12:06:06Z willem $)[2];
6                
7 1       1   6 use base qw(Net::DNS::RR::DS);
  1           1  
  1           540  
8                
9                
10               =head1 NAME
11                
12               Net::DNS::RR::CDS - DNS CDS resource record
13                
14               =cut
15                
16 1       1   6 use integer;
  1           1  
  1           3  
17                
18                
19               sub algorithm {
20 14       14 1 1054 my ( $self, $arg ) = @_;
21 14 100         28 return $self->SUPER::algorithm($arg) if $arg;
22 8 100         21 return $self->SUPER::algorithm() unless defined $arg;
23 2           3 @{$self}{qw(keytag algorithm digtype digestbin)} = ( 0, 0, 0, chr(0) );
  2           5  
24 2           4 return;
25               }
26                
27                
28               sub digtype {
29 12       12 1 852 my ( $self, $arg ) = @_;
30 12 100         31 return $self->SUPER::digtype($arg) if $arg;
31 7           15 return $self->SUPER::digtype();
32               }
33                
34                
35               1;
36               __END__