SRS/Server/List.pm

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