File Coverage

blib/lib/XML/EPP/Extension.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::EPP::Extension;
3              
4 1     1   2633 use Moose;
  0            
  0            
5             use MooseX::Method::Signatures;
6             use Moose::Util::TypeConstraints;
7             use PRANG::Graph;
8             use XML::EPP::Extension::Type;
9              
10             our $SCHEMA_PKG = "XML::EPP";
11              
12             has_element 'ext_objs' =>
13             is => "rw",
14             isa => "ArrayRef[XML::EPP::Extension::Type]",
15             required => 1,
16             ;
17              
18             with "${SCHEMA_PKG}::Node";
19              
20             subtype "${SCHEMA_PKG}::extAnyType"
21             => as __PACKAGE__;
22              
23             method is_command {
24             $self->ext_objs->[0]->is_command;
25             }
26              
27             1;