Condition Coverage

blib/lib/Glitch.pm
Criterion Covered Total %
condition 29 35 82.8


and 3 conditions

line !l l&&!r l&&r condition
68 2 0 5 $META{'logger_enabled'} and $META{'logger'}
129 18 7 14 $_ and $_->{'module'}
17 0 14 $_ and $_->{'module'} and $_->{'line'}

or 2 conditions

line l !l condition
71 0 5 $META{'logger_method'} || 'err'
80 0 7 $options{'object_name'} ||= "Glitch"
83 1 6 $META{'stringify_format'} ||= "default"
87 1 6 $META{'stringify'}{'default'} ||= "return \$_[0]->message . \" at \" . \$_[0]->filepath . \" line \" . \$_[0]->line . \"\\n\";"
88 1 6 $META{'stringify'}{'json'} ||= "require JSON; JSON->new->encode(\$_[0]->hash);"
94 11 0 $_[0]{'file'} || ''
2 9 $_[0]{'filepath'} || ''
4 2 $_[0]{'line'} || ''
9 0 $_[0]{'message'} || 'this is a test'
2 4 $_[0]{'module'} || ''
4 1 $_[0]{'name'} || 'one'
5 5 $_[0]{'object_name'} || 'Glitch'
1 1 $_[0]{'stacktrace'} || ''