Branch Coverage

blib/lib/Mojo/Webqq/Log.pm
Criterion Covered Total %
branch 1 42 2.3


line true false branch
12 1 0 unless $@
38 0 0 ref $lines[0] eq 'HASH' ? :
39 0 0 if defined $opt{'time'}
40 0 0 $time ? :
52 0 0 defined $opt{'title'} ? :
58 0 0 if not $_[0] && $_[1] or $self->disable_color or not $is_support_color
59 0 0 if $is_support_color
66 0 0 if ($self->unicode_support and &Encode::is_utf8($log)) { }
70 0 0 if ($self->encoding =~ /^utf-?8$/i) { }
81 0 0 unless my $handle = $self->handle
85 0 0 if (-t $handle) { }
95 0 0 $log->{'level'} ? :
97 0 0 unless $handle->print($color_msg)
108 0 0 $log->{'level'} ? :
111 0 0 unless $handle->print($msg)
112 0 0 if ($self->console_output and -t STDOUT)
122 0 0 $log->{'level'} ? :
150 0 0 ref $_[0] eq 'CODE' ? :
154 0 0 unless $self->_now($level)
158 0 0 if (ref $_[0] eq 'HASH') { }
159 0 0 unless defined $_[0]{'head'}