Branch Coverage

blib/lib/Mojo/Log.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
39 28 25 unless my $handle = $self->handle
41 0 25 unless $handle->print(encode("UTF-8", $msg))
48 1 17 if $self->{'capturing'}++
75 14 33 if (2 >= $LEVEL{$_[0]->level}) { }
77 41 23 if (5 >= $LEVEL{$_[0]->level}) { }
78 9 0 if (6 >= $LEVEL{$_[0]->level}) { }
79 4 0 if (3 >= $LEVEL{$_[0]->level}) { }
89 901 2477 if (1 >= $LEVEL{$_[0]->level}) { }
90 4 0 if (4 >= $LEVEL{$_[0]->level}) { }
94 4 2 $COLORS{$level} ? :
107 559 414 ref $_[0] eq 'CODE' ? :
108 933 40 if $self->{'context'}