blib/lib/WWW/Ohloh/API/Role/LoadXML.pm

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