Model/Adaptor.pm

filter: Statementstmt 60.8% 14 / 23 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 52.7% 19 / 36 CC 4 SCAR 23.5
CC
4
Cov
48%
COMPONENT
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 10.5
↑ Summary Model/Factory.pm »
1 package Catalyst::Model::Adaptor;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use MRO::Compat;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use base 'Catalyst::Model::Adaptor::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '0.10';
9  
10 0 ▶sub COMPONENT {
Subroutine COMPONENT: not called CC=4 SCAR=30.0
Pod documented
11 0 my ($class, $app, @rest) = @_;
12 0 my $arg = {};
13 0 ▶ if ( scalar @rest ) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @rest) 0 0 0
14 0 ▶ if ( ref($rest[0]) eq 'HASH' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $rest[0] eq 'HASH') { } 0 0 0
15 0 $arg = $rest[0];
16 }
17 else {
18 0 $arg = { @rest };
19 }
20 }
21 0 my $self = $class->next::method($app, $arg);
22  
23 0 $self->_load_adapted_class;
24 0 ▶ return $self->_create_instance(
Condition0%0/2
$class->config || {}
l!l
00
MC/DC0%0/1
$class->config || {}
$class->config
Truth table0%0/2
A
A= $class->config
Aresult
11
00
25 $app, $class->merge_config_hashes($class->config || {}, $arg)
26 );
27 }
28  
29 1 1;
30 __END__
↑ Summary Model/Factory.pm »