Contacts/Meta/Attribute/Trait/XmlField.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 33 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Contacts/Type/Priority.pm ↑ Summary Contacts/Type/Birthday.pm »
1 package WWW::Google::Contacts::Meta::Attribute::Trait::XmlField;
2 {
3 20 $WWW::Google::Contacts::Meta::Attribute::Trait::XmlField::VERSION = '0.39';
4 }
5  
6 20 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 20 ▶use WWW::Google::Contacts::InternalTypes qw( Method );
Subroutine BEGIN: called CC=1 SCAR=0.0
8 20 ▶use MooseX::Types::Moose qw( Str CodeRef Bool );
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 20 has xml_key => (
11 isa => Str,
12 is => 'ro',
13 required => 1,
14 );
15  
16 # Allow attributes to have custom code for transforming to xml
17 20 has to_xml => (
18 isa => CodeRef,
19 is => 'ro',
20 predicate => 'has_to_xml',
21 );
22  
23 has is_element => (
24 isa => Bool,
25 is => 'ro',
26 1398 ▶ default => sub { 0 },
Subroutine __ANON__: called CC=1 SCAR=0.0
27 20 );
28  
29 has include_in_xml => (
30 isa => Method,
31 is => 'ro',
32 1758 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
33 3 ▶ sub { 1 }
Subroutine __ANON__: called CC=1 SCAR=0.0
34 1758 },
35 20 coerce => 1,
36 );
37  
38 20 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 package Moose::Meta::Attribute::Custom::Trait::XmlField;
41 {
42 20 $Moose::Meta::Attribute::Custom::Trait::XmlField::VERSION = '0.39';
43 }
44  
45 20 ▶sub register_implementation {
Subroutine register_implementation: called CC=1 SCAR=0.0
46 20 'WWW::Google::Contacts::Meta::Attribute::Trait::XmlField';
47 }
48  
49 20 1;
« Contacts/Type/Priority.pm ↑ Summary Contacts/Type/Birthday.pm »