Condition Coverage

lib/Badger/Config/Item.pm
Criterion Covered Total %
condition 13 47 27.6


and 3 conditions

line !l l&&!r l&&r condition
204 9 173 0 &blessed($object) and $method = $self->{'method'}
224 0 0 0 @$args and defined $args->[0]
0 0 0 @$args and defined $args->[0] and not $args->[0] =~ /^-/
230 0 0 0 @$args and defined $args->[0]
0 0 0 @$args and defined $args->[0] and not $args->[0] =~ /^-/

or 2 conditions

line l !l condition
45 60 0 $config->{'name'} || (return $self->error_msg('missing', 'name'))
66 0 60 $config->{'alias'} || {}
78 7 53 $config->{'fallback'} || []
91 41 0 $fall->fallback($name, $type, $data) || (return $self->error_msg('bad_type', $name, $type))
108 0 60 $config->{'arity'} || 0
172 0 1 $self->{'message'} || 'missing'
188 0 0 $target->{$name} ||= []
195 0 0 $target->{$name} ||= {}
259 0 0 $self->{'args'} || ''
260 0 0 $self->{'about'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
39 60 0 0 delete $config->{'fallback_provider'} || $self
103 0 0 60 $config->{'message'} || $config->{'error'}
135 275 0 0 $class ||= $target
183 182 0 0 $object ||= $target