| line |
true |
false |
branch |
|
64
|
24 |
1 |
unless ($item = $config->{'item'}) |
|
69
|
24 |
0 |
if (defined($item = ${$pkg . "::" . "ITEM";})) |
|
75
|
0 |
25 |
unless $item |
|
99
|
0 |
25 |
defined $config->{'no_cache'} ? : |
|
106
|
0 |
25 |
if ($default) |
|
124
|
0 |
0 |
ref $_[0] eq 'ARRAY' ? : |
|
|
0 |
46 |
@_ ? : |
|
131
|
1 |
0 |
@_ ? : |
|
137
|
0 |
0 |
if (@_) |
|
138
|
0 |
0 |
ref $_[0] eq 'HASH' ? : |
|
145
|
24 |
61 |
unless ref $self |
|
158
|
2 |
83 |
unless &textlike($type) |
|
176
|
0 |
83 |
if exists $items->{$type} and not $items->{$type} |
|
189
|
81 |
0 |
unless $self->{'no_cache'} |
|
204
|
0 |
65 |
if (ref $type eq 'HASH') { } |
|
226
|
44 |
10 |
if $module = $self->load($self->module_names($base, $type)) |
|
241
|
12 |
52 |
if ($loaded->{$module}) { } |
|
|
0 |
52 |
elsif (defined $loaded->{$module}) { } |
|
260
|
32 |
20 |
if ($loadname = class($module)->maybe_load) |
|
276
|
29 |
54 |
if (ref $item) { } |
|
280
|
25 |
4 |
&blessed($item) ? : |
|
304
|
0 |
83 |
unless defined $item |
|
338
|
1 |
1 |
$type eq 'default' ? : |
|
364
|
0 |
35 |
unless ref $self |
|
368
|
0 |
35 |
if ($self->{'item'} and $self->{'item'} eq $name) { } |
|
|
0 |
35 |
elsif ($self->{'items'} and $self->{'items'} eq $name) { } |
|
386
|
5 |
7 |
if $name eq "DESTROY" |
|
391
|
0 |
7 |
if ++$RUNAWAY > 10 |
|
395
|
4 |
3 |
unless ref $self |
|
399
|
6 |
1 |
if ($name eq $self->{'item'}) { } |
|
|
0 |
1 |
elsif ($name eq $self->{'items'}) { } |
|
|
0 |
1 |
elsif (my $item = $self->try('item', $name, @args)) { } |