Branch Coverage

blib/lib/Zonemaster/Engine/Logger.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
29 2443 86793 if ($self->callback and ref $self->callback eq 'CODE')
31 5 2438 if ($@)
33 4 1 if (&blessed($err) and $err->isa('Zonemaster::Engine::Exception')) { }
50 3 89233 if ($config)
51 3 0 if ($$config{$entry->module})
56 3 2 if (ref $cond and ref $cond eq 'ARRAY') { }
59 2 1 if (&any(sub { $_ eq $entry->args->{$key}; } , @$cond)) { }
69 2 0 if ($cond eq $entry->args->{$key}) { }
77 2 1 if ($match)
108 0 0 if $_->numeric_level > $level
121 1 1 if ($min_level and defined $numeric{uc $min_level})
132 10 0 if $m->args