blib/lib/DNS/NIOS/Traits/ApiMethods.pm

filter: Statementstmt 66.6% 14 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 41.6% 5 / 12 Podpod 100% 9 / 9 totaltotal 66.6% 28 / 42 SCAR 0.4
CC
1
Cov
67%
create_cname_record
2.0
create_host_record
2.0
list_aaaa_records
2.0
CRAP 1.0
« blib/lib/DNS/NIOS/Response.pm ↑ Summary Build »
1 #
2 # This file is part of DNS-NIOS
3 #
4 # This software is Copyright (c) 2021 by Christian Segundo.
5 #
6 # This is free software, licensed under:
7 #
8 # The Artistic License 2.0 (GPL Compatible)
9 #
10 ## no critic
11 package DNS::NIOS::Traits::ApiMethods;
12 3 $DNS::NIOS::Traits::ApiMethods::VERSION = '0.004';
13  
14 # ABSTRACT: Convenient sugar for NIOS
15 # VERSION
16 # AUTHORITY
17  
18 ## use critic
19 3 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 3 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 3 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 3 requires qw( create get );
24  
25 sub create_a_record {
26 1 ▶ shift->create( path => 'record:a', @_ );
Subroutine create_a_record: called CC=1 SCAR=0.0
Pod documented
27 }
28  
29 sub create_cname_record {
30 0 ▶ shift->create( path => 'record:cname', @_ );
Subroutine create_cname_record: not called CC=1 SCAR=6.9
Pod documented
31 }
32  
33 sub create_host_record {
34 0 ▶ shift->create( path => 'record:host', @_ );
Subroutine create_host_record: not called CC=1 SCAR=6.9
Pod documented
35 }
36  
37 sub list_a_records {
38 3 ▶ shift->get( path => 'record:a', @_ );
Subroutine list_a_records: called CC=1 SCAR=0.0
Pod documented
39 }
40  
41 sub list_aaaa_records {
42 0 ▶ shift->get( path => 'record:aaaa', @_ );
Subroutine list_aaaa_records: not called CC=1 SCAR=6.9
Pod documented
43 }
44  
45 sub list_cname_records {
46 0 ▶ shift->get( path => 'record:cname', @_ );
Subroutine list_cname_records: not called CC=1 SCAR=6.9
Pod documented
47 }
48  
49 sub list_host_records {
50 0 ▶ shift->get( path => 'record:host', @_ );
Subroutine list_host_records: not called CC=1 SCAR=6.9
Pod documented
51 }
52  
53 sub list_ptr_records {
54 0 ▶ shift->get( path => 'record:ptr', @_ );
Subroutine list_ptr_records: not called CC=1 SCAR=6.9
Pod documented
55 }
56  
57 sub list_txt_records {
58 0 ▶ shift->get( path => 'record:txt', @_ );
Subroutine list_txt_records: not called CC=1 SCAR=6.9
Pod documented
59 }
60  
61 3 1;
62  
63 __END__
« blib/lib/DNS/NIOS/Response.pm ↑ Summary Build »