Condition Coverage

lib/Badger/Class/Methods.pm
Criterion Covered Total %
condition 12 17 70.5


and 3 conditions

line !l l&&!r l&&r condition
106 1 1 5 @_ == 2 and not ref $_[1]
110 1 0 1 @_ == 1 && ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
46 8 0 shift() || (return $class->error_msg('no_target'))
48 8 0 shift() || (return $class->error_msg('no_type'))
50 8 0 shift() || (return $class->error_msg('no_methods', $type))
52 8 0 $class->can($type) || (return $class->error_msg('bad_type', $type))

or 3 conditions

line l !l&&r !l&&!r condition
177 8 8 2 $this->SUPER::can($name) || $this->$method($name, @args)