blib/lib/XML/SRS/Server.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 1 | 3 | 33.3 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 1 | 100.0 |
pod | n/a | ||
total | 2 | 4 | 50.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | |||||||
2 | package XML::SRS::Server; | ||||||
3 | |||||||
4 | 1 | 1 | 1561 | use Moose; | |||
0 | |||||||
0 | |||||||
5 | use PRANG::Graph; | ||||||
6 | use XML::SRS::Types; | ||||||
7 | |||||||
8 | has_attr 'fqdn' => | ||||||
9 | is => "ro", | ||||||
10 | isa => "XML::SRS::DomainName", | ||||||
11 | xml_name => "FQDN", | ||||||
12 | ; | ||||||
13 | |||||||
14 | has_attr 'ipv4_addr' => | ||||||
15 | is => "ro", | ||||||
16 | isa => "XML::SRS::IPv4", | ||||||
17 | xml_name => "IP4Addr", | ||||||
18 | xml_required => 0, | ||||||
19 | ; | ||||||
20 | |||||||
21 | has_attr 'ipv6_addr' => | ||||||
22 | is => "ro", | ||||||
23 | isa => "XML::SRS::IPv6", | ||||||
24 | xml_name => "IP6Addr", | ||||||
25 | xml_required => 0, | ||||||
26 | ; | ||||||
27 | |||||||
28 | with 'XML::SRS::Node'; | ||||||
29 | |||||||
30 | 1; |