line |
true |
false |
branch |
35
|
2 |
5 |
unless 'ARRAY' eq ref $_[0] and @{$_[0];} |
38
|
1 |
15 |
unless my $args = Params::Check::check({'fmt', {'allow', sub {
ref $_[0] eq 'CODE';
}
}, 'attrs', {'allow', sub {
'HASH' eq ref $_[0] unless 'ARRAY' eq ref $_[0] and @{$_[0];};
}
}, 'private', {'default', 1}, 'instance', {}}, {@_}) |
44
|
9 |
6 |
unless (exists $args->{'attrs'}) |
48
|
1 |
8 |
if $@ |
53
|
1 |
13 |
unless my $has = $container->can('has') |
59
|
12 |
1 |
'ARRAY' eq ref $args->{'attrs'} ? : |
64
|
16 |
5 |
$args->{'fmt'} ? : |
|
21 |
1 |
unless defined $alias |
67
|
13 |
9 |
$args->{'private'} ? : |
82
|
6 |
7 |
if (defined $args->{'instance'}) { } |
109
|
11 |
17 |
defined $options->{'instance'} ? : |
111
|
1 |
27 |
unless defined $map |
123
|
7 |
1 |
'HASH' eq ref $_[-1] ? : |
125
|
6 |
2 |
@_ ? : |
137
|
9 |
12 |
'HASH' eq ref $_[-1] ? : |
139
|
1 |
20 |
unless my $containerClass = &Scalar::Util::blessed($container) |
150
|
32 |
2 |
if $container->$has |