Condition Coverage

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


and 3 conditions

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

or 2 conditions

line l !l condition
77 0 5 $META{'logger_method'} || 'err'
87 0 7 $options{'object_name'} ||= "Glitch"
90 1 6 $META{'stringify_format'} ||= "default"
94 1 6 $META{'stringify'}{'default'} ||= "return \$_[0]->message . \" at \" . \$_[0]->filepath . \" line \" . \$_[0]->line . \"\\n\";"
95 1 6 $META{'stringify'}{'json'} ||= "require JSON; JSON->new->encode(\$_[0]->hash);"
101 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'} || ''