NewsML_G2/Role/HasTranslations.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« NewsML_G2/Role/HasQCode.pm ↑ Summary NewsML_G2/Role/Remote.pm »
1 package XML::NewsML_G2::Role::HasTranslations;
2  
3 26 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 26 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 has 'translations',
7 isa => 'HashRef',
8 is => 'rw',
9 58 ▶ default => sub { {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
10 26 traits => ['Hash'],
11 handles => {
12 add_translation => 'set',
13 has_translations => 'count',
14 get_translation => 'get',
15 languages => 'keys'
16 };
17  
18 26 1;
19 __END__
« NewsML_G2/Role/HasQCode.pm ↑ Summary NewsML_G2/Role/Remote.pm »