Branch Coverage

blib/lib/Mail/Reporter.pm
Criterion Covered Total %
branch 34 42 80.9


line true false branch
54 1 57 unless @_
58 0 57 unless my $prio = $thing->logPriority($level)
61 54 3 if (not @_) { }
1 2 elsif (ref $_[0]) { }
88 3 1 unless @_
91 0 1 unless my $prio = $levelprio{$level}
108 40 2 if (ref $thing) { }
110 3 37 unless @_
113 0 37 unless my $prio = $levelprio{$level}
116 0 37 unless @_
121 2 35 if $prio >= $thing->{'MR_trace'}
123 0 37 unless $thing->{'MR_trace'}
126 6 31 if $prio >= $thing->{'MR_log'}
130 0 2 unless my $prio = $levelprio{$level}
133 1 1 if $prio >= $default_trace
148 7 4 if (@_)
150 0 7 unless my $prio = $levelprio{$level}
153 7 0 $reports->[$prio] ? :
158 11 9 unless $reports->[$prio]
174 3 2 if exists $reports->[$prio]
214 2 69 unless my $level = $levelprio{$_[1]}