Branch Coverage

lib/Haineko/Log.pm
Criterion Covered Total %
branch 9 40 22.5


line true false branch
56 0 14 unless grep {$$argvs{'loglevel'} eq $_;} @$LogLevels
64 0 14 if (defined $$argvs{'option'} and ref $$argvs{'option'} eq 'HASH') { }
80 0 0 if $$self{'options'}{$_}
90 2 0 if $$self{'queueid'}
91 2 0 if $$self{'remoteaddr'}
92 0 2 if $host and $$self{'remoteport'}
93 2 0 if length $host
94 0 2 if $$self{'useragent'}
96 0 2 unless scalar @$head
108 14 0 if $$self{'disabled'}
109 0 0 unless ref $mesg eq 'HASH'
111 0 0 unless grep {$sllv eq $_;} @$LogLevels
116 0 0 if ref $$mesg{$e}
117 0 0 unless $$mesg{$e}
119 0 0 if $text =~ /\s/
123 0 0 if (defined $$mesg{'message'})
125 0 0 if (ref $$mesg{'message'} eq 'ARRAY') { }
134 0 0 unless openlog($$self{'identify'}, $self->o, $$self{'facility'})
135 0 0 unless syslog($sllv, join(', ', @$logs))
136 0 0 unless closelog()