Branch Coverage

blib/lib/EntityModel/Log.pm
Criterion Covered Total %
branch 35 86 40.7


line true false branch
160 0 0 if $skip-- > 0
167 0 0 unless $info{'package'} eq $pkg
174 0 0 if ($dump)
176 0 0 if (-r $$info{'filename'})
181 0 0 unless CORE::open my $fh, '<:encoding(utf8)', $$info{'filename'}
183 0 0 if ($start)
205 0 0 if $str eq lc $_
274 0 0 if (@_)
275 0 0 if $self->is_open
291 1 1 if (@_)
306 3 4 if (@_)
320 0 2 if (@_)
335 0 2 unless $self->is_open
337 1 1 if (my $h = delete $$self{'handle'})
338 0 1 unless $h->close
352 0 0 unless $self->is_open
355 0 0 if $self->handle == \*STDERR or $self->handle == \*STDOUT
368 0 0 if $self->is_open
369 0 0 unless CORE::open my $fh, '>>', $self->path
386 0 0 if $self->is_open
418 0 8 unless @_
429 6 15 if (my $ref = ref $entry)
430 5 1 if ($ref =~ /^CODE/) { }
1 0 elsif ($ref eq 'ARRAY' or $ref eq 'HASH') { }
445 3 5 unless @data
451 0 5 unless defined $fmt
452 0 5 if grep {not defined $_;} @data
465 0 0 unless $ctx->is_blessed
467 0 0 $$info{'package'} eq 'EntityModel::Log' ? :
496 1 0 if (@_)
518 0 2 if $_[0]->disabled
528 0 2 $sub ? :
532 0 2 if $minLevel > $level
553 1 1 if (my $handle = $self->get_handle)
571 1 1 unless ($$self{'handle'})
572 1 0 if $ENV{'HARNESS_ACTIVE'}
574 0 0 if exists $$self{'handle'}
577 0 1 unless $$ == $self->pid
579 0 1 unless $self->is_open
591 1 1 if (@_)
592 1 0 if $self->is_open
598 0 1 unless $$self{'handle'}
602 1 0 if $instance