lib/Badger/Factory.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 19 | 37 | 51.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
176 | 39 | 44 | 0 | exists $items->{$type} and not $items->{$type} |
368 | 0 | 35 | 0 | $self->{'item'} and $self->{'item'} eq $name |
0 | 35 | 0 | $self->{'items'} and $self->{'items'} eq $name |
line | l | !l | condition |
---|---|---|---|
99 | 0 | 25 | $class->any_var('NO_CACHE') || 0 |
179 | 37 | 2 | $items->{$type} || $items->{$canon} || $self->find($type, \@args) || (return $self->not_found($type, \@args)) |
201 | 63 | 2 | shift() || 'default' |
206 | 0 | 0 | $type->{'type'} || 'default' |
293 | 29 | 0 | $self->can('found_' . $iref) || $self->can('found_ref') || (return $self->error_msg('bad_ref', $self->{'item'}, $type, $iref)) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
79 | 0 | 25 | 0 | $config->{'items'} || $items || plural($item) |
105 | 0 | 0 | 25 | $config->{$idefault} || $config->{'default'} || $class->any_var_in(uc $idefault, 'DEFAULT') |
223 | 1 | 45 | 0 | $self->{'names'}{$type} || $type |
319 | 47 | 7 | 0 | $self->{'loaded'}{$module} ||= class($module)->load |
329 | 1 | 3 | 0 | $self->{'loaded'}{$module} ||= class($module)->load |
410 | 1 | 0 | 0 | ref $self || $self |