| 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
| |||||||||||||
| 14 | 0 | ▶ | if ( ref($rest[0]) eq 'HASH' ) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 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 || {}
MC/DC0%0/1
$class->config || {}
$class->config
Truth table0%0/2
A
A= $class->config
| |||||||||||||
| 25 | $app, $class->merge_config_hashes($class->config || {}, $arg) | ||||||||||||
| 26 | ); | ||||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 1 | 1; | |||||||||||
| 30 | __END__ | ||||||||||||