Oterica/RecordMaker/Diagnostic.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package DNS::Oterica::RecordMaker::Diagnostic;
4 # ABSTRACT: a collector of record generation requests, for testing
5 $DNS::Oterica::RecordMaker::Diagnostic::VERSION = '0.313';
6 use Sub::Install;
7  
8 #pod =head1 DESCRIPTION
9 #pod
10 #pod This recordmaker returns hashrefs describing the requested record.
11 #pod
12 #pod At present, the returned data are very simple. They will change and improve
13 #pod over time.
14 #pod
15 #pod =cut
16  
17 my @types = qw(
18 comment
19 a_and_ptr
20 ptr
21 soa_and_ns_for_ip
22 a
23 mx
24 domain
25 soa_and_ns
26 cname
27 txt
28 srv
29 dkim
30 );
31  
32 for my $type (@types) {
33 my $code = sub {
34 return {
35 type => $type,
36 args => [ @_ ],
37 };
38 };
39  
40 Sub::Install::install_sub({ code => $code, as => $type });
41 }
42  
43 1;
44  
45 __END__
46  
47 =pod
48  
49 =encoding UTF-8
50  
51 =head1 NAME
52  
53 DNS::Oterica::RecordMaker::Diagnostic - a collector of record generation requests, for testing
54  
55 =head1 VERSION
56  
57 version 0.313
58  
59 =head1 DESCRIPTION
60  
61 This recordmaker returns hashrefs describing the requested record.
62  
63 At present, the returned data are very simple. They will change and improve
64 over time.
65  
66 =head1 PERL VERSION
67  
68 This library should run on perls released even a long time ago. It should work
69 on any version of perl released in the last five years.
70  
71 Although it may work on older versions of perl, no guarantee is made that the
72 minimum required version will not be increased. The version may be increased
73 for any reason, and there is no promise that patches will be accepted to lower
74 the minimum required perl.
75  
76 =head1 AUTHOR
77  
78 Ricardo SIGNES <rjbs@semiotic.systems>
79  
80 =head1 COPYRIGHT AND LICENSE
81  
82 This software is copyright (c) 2021 by Ricardo SIGNES.
83  
84 This is free software; you can redistribute it and/or modify it under
85 the same terms as the Perl 5 programming language system itself.
86  
87 =cut