Branch Coverage

blib/lib/Mojo/Log/Che.pm
Criterion Covered Total %
branch 28 36 77.7


line true false branch
29 0 19 if $handler
34 15 4 if $path
38 6 13 if ($is_dir) { }
3 10 elsif ($path_level) { }
40 0 6 if $path =~ m[/$]
53 0 9 unless $handler = 'Mojo::File'->new($file)->open('>>:encoding(UTF-8)')
64 0 19 unless $handle ||= $self->handle
66 0 19 unless $handle->print($msg)
75 7 3 $LEVEL{$level} ? :
10 9 if $level //= ''
79 57 19 length $_ == 1 ? :
90 16 0 if @call
104 4 19 unless not $LEVEL{$level} or $self->is_level($level)
109 16 3 if $self->trace
111 16 0 $trace->[0] eq 'main' ? :
16 3 if $trace and @$trace
116 9 10 if (my $handle = $self->handler($level))
129 0 6 unless &Scalar::Util::blessed($self) and $self->isa('Mojo::Log::Che')