SRS/Server/List.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SRS/Server/Filter/List.pm ↑ Summary SRS/Zone.pm »
1  
2 package XML::SRS::Server::List;
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use XML::SRS::Zone;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use XML::SRS::Server;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 has_element 'nameservers' =>
12 is => "rw",
13 isa => "ArrayRef[XML::SRS::Server]",
14 xml_nodeName => "Server",
15 ;
16  
17 coerce __PACKAGE__
18 => from 'ArrayRef[Str]'
19 => via {
20 __PACKAGE__->new(
21 nameservers => [
22 map {
23 XML::SRS::Server->new( fqdn => $_ );
24 } @$_
25 ],
26 );
27 };
28  
29 coerce __PACKAGE__
30 => from 'ArrayRef[HashRef]'
31 => via {
32 __PACKAGE__->new(
33 nameservers => [
34 map {
35 XML::SRS::Server->new( $_ );
36 } @$_
37 ],
38 );
39 };
40  
41 with 'XML::SRS::Node';
42  
43 1;
« SRS/Server/Filter/List.pm ↑ Summary SRS/Zone.pm »