API/Role/LoadXML.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 96.0% 24 / 25 CC 2 SCAR 3.0
CC
2
Cov
95%
_init
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« API/Repository.pm ↑ Summary API/Enlistment.pm »
1 package WWW::Ohloh::API::Role::LoadXML;
2 38 our $AUTHORITY = 'cpan:YANICK';
3 38 $WWW::Ohloh::API::Role::LoadXML::VERSION = '1.0.2';
4 38 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 38 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 38 ▶use Object::InsideOut;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 17 my %init_args : InitArgs = ( 'xml' => '', );
10  
11 17 ▶sub _init : Init {
Subroutine _init: called CC=2 SCAR=7.2
12 38 my ( $self, $args ) = @_;
13  
14 38 ▶ $self->load_xml( $args->{xml} ) if $args->{xml};
Branch: 1 branch
BranchTrueFalseTotal
if $args->{"xml"} 17 0 17
15 38 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 17 1;
18  
19 __END__
« API/Repository.pm ↑ Summary API/Enlistment.pm »