Condition Coverage

lib/Badger/Hub.pm
Criterion Covered Total %
condition 16 44 36.3


and 3 conditions

line !l l&&!r l&&r condition
238 1 0 0 @_ && ref $_[0] eq 'HASH'
309 0 7 0 $config and ref $config eq "HASH"
0 0 7 &blessed($config) and $method = $config->can("get")
0 0 0 &blessed($config) and $method = $config->can($name)

or 2 conditions

line l !l condition
64 1 3 delete $args->{'config'} || $self->class->any_var('CONFIG') || {}
292 1 0 $config->{'module'} || (return $self->error_msg('no_module', $name))
354 6 1 $self->class->any_var(uc $name) || (return $params)
390 1 0 ${"${class}::PROTOTYPE";} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
68 0 4 0 delete $args->{'config_module'} || $class->any_var('CONFIG_MODULE') || $self->CONFIG_MODULE
164 0 2 0 $self->{'components'} || $self->init_components
189 0 1 0 $self->{'delegates'} || $self->init_delegates
232 1 0 0 ref $self || $self
234 0 1 0 $Badger::Hub::LOADED->{$name} ||= class($comp)->load
241 0 1 0 $self->{$name} ||= $self->construct($name, {%$args, "hub", $self, "module", $comp})
257 0 0 0 ref $self || $self
348 7 0 0 $self->pkgvar_config($name, $params) || ($params ? {%$params} : {})