Branch Coverage

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


line true false branch
11 1 0 unless $@
37 0 0 ref $lines[0] eq 'HASH' ? :
38 0 0 if defined $opt{'time'}
39 0 0 $time ? :
51 0 0 defined $opt{'title'} ? :
57 0 0 if not $_[0] && $_[1] or $self->disable_color or not $is_support_color
58 0 0 if $is_support_color
65 0 0 if ($self->unicode_support and &Encode::is_utf8($log)) { }
69 0 0 if ($self->encoding =~ /^utf-?8$/i) { }
80 0 0 unless my $handle = $self->handle
84 0 0 if (-t $handle) { }
94 0 0 $log->{'level'} ? :
96 0 0 unless $handle->print($color_msg)
107 0 0 $log->{'level'} ? :
110 0 0 unless $handle->print($msg)
111 0 0 if ($self->console_output and -t STDOUT)
121 0 0 $log->{'level'} ? :
149 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'}