NewsML_G2/Role/Writer.pm

filter: Statementstmt 100% 11 / 11 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 94.4% 17 / 18 CC 3 SCAR 7.9
CC
3
Cov
93%
_create_remote_content
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« NewsML_G2/Writer/Package_Item.pm ↑ Summary NewsML_G2/Scheme.pm »
1 package XML::NewsML_G2::Role::Writer;
2  
3 24 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 24 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 56 ▶sub _create_remote_content {
Subroutine _create_remote_content: called CC=3 SCAR=11.0
7 56 my ( $self, $root, $remote ) = @_;
8  
9 56 ▶ $root->setAttribute( 'contenttype', $remote->mimetype )
Branch: 1 branch
BranchTrueFalseTotal
if $remote->mimetype 56 0 56
10 if ( $remote->mimetype );
11  
12 56 ▶ $root->setAttribute( 'size', $remote->size )
Branch: 1 branch
BranchTrueFalseTotal
if defined $remote->size 19 37 56
13 if ( defined $remote->size );
14  
15 56 return;
16 }
17  
18 24 1;
19 __END__
« NewsML_G2/Writer/Package_Item.pm ↑ Summary NewsML_G2/Scheme.pm »