Condition Coverage

blib/lib/Log/Deep.pm
Criterion Covered Total %
condition 40 71 56.3


and 2 conditions

line l !l condition
393 1 1 $$self{'old_warn_handle'} && 1

and 3 conditions

line !l l&&!r l&&r condition
247 8 0 4 not $$self{'reopening'} and -s $file
271 4 0 0 defined $$self{'log_session_count'} and $$self{'log_session_count'} == 0
302 3 1 2 @level == 1 and $level[0] =~ /^\d$/
312 3 0 1 @level == 1 and any sub { $_ eq $level[0]; } , @LOG_LEVELS
373 1 0 1 $action == 1 and not $$self{'old_warn_handle'}
0 0 1 $action == 0 and $$self{'old_warn_handle'}

or 2 conditions

line l !l condition
48 0 4 $param{-'style'} || 'none'
51 0 4 $param{-'rand_max'} || 10000
55 0 4 $param{-'vars_config'} || {}
59 0 4 $param{-'vars'} || {}
184 8 5 $$data{-'level'} || '(none)'
238 0 4 $ENV{'TMP'} || '/tmp'
239 4 0 (split(m[/], $0, 0))[-1] || 'deep'
240 8 4 $$self{'date_fmt'} ||= '%Y-%m-%d'
287 15 4 $$self{'level'} ||= {map({$_, 0;} @LOG_LEVELS)}

or 3 conditions

line l !l&&r !l&&!r condition
81 1 0 0 not ref $params[0] or ref $params[0] ne 'HASH'
95 1 0 0 not ref $params[0] or ref $params[0] ne 'HASH'
109 1 0 0 not ref $params[0] or ref $params[0] ne 'HASH'
123 1 0 1 not ref $params[0] or ref $params[0] ne 'HASH'
137 1 0 0 not ref $params[0] or ref $params[0] ne 'HASH'
152 1 0 0 not ref $params[0] or ref $params[0] ne 'HASH'
168 1 0 0 not ref $params[0] or ref $params[0] ne 'HASH'
238 8 4 0 $$self{'log_dir'} ||= $ENV{'TMP'} || '/tmp'
239 8 4 0 $$self{'log_name'} ||= (split(m[/], $0, 0))[-1] || 'deep'
243 8 0 4 $$self{'file'} || "$$self{'log_dir'}/$$self{'log_name'}_$$self{'log_date'}.log"
275 0 5 0 $session_id || int rand $$self{'rand_max'}