Branch Coverage

blib/lib/Log/Any/Simple.pm
Criterion Covered Total %
branch 72 86 83.7


line true false branch
45 10 37 if ($arg eq ':default') { }
5 32 elsif ($arg eq ':all') { }
3 29 elsif (exists $ALL_LOG_METHODS{$arg}) { }
9 20 elsif ($arg eq ':die_at') { }
7 13 elsif ($arg eq ':die_repeats_msg') { }
2 11 elsif ($arg eq ':die_silence_msg') { }
1 10 elsif ($arg eq ':category') { }
2 8 elsif ($arg eq ':prefix') { }
2 6 elsif ($arg eq ':dump_long') { }
0 6 elsif ($arg eq ':dump_short') { }
2 4 elsif (exists $EXPORT_OK{$arg}) { }
0 4 elsif ($arg eq ':to_stderr') { }
0 4 elsif ($arg eq ':to_stdout') { }
3 1 elsif ($arg eq ':from_argv') { }
53 1 8 if ($level eq 'none') { }
57 0 8 unless defined $die_at
66 0 1 unless $category
70 0 2 unless $prefix
91 17 10 if %to_export
103 3 0 if ($arg eq ':logging') { }
120 3 3 if (@_ == 1) { }
3 0 elsif (@_ == 2) { }
130 0 6 if defined $mode and not $mode =~ /^(?:$valid_re)$/
132 3 3 if (defined $category) { }
164 46 87 if (_should_die($method, $hint_hash)) { }
191 24 2 ($hint_hash->{$DUMP_KEY} // 'short') eq 'short' ? :
195 2 13 if ref $_ eq "CODE"
196 0 15 unless defined $_
197 11 4 unless ref $_
207 2 24 if exists $hint_hash->{$PREFIX_KEY}
219 20 2 if ($hint_hash->{$DIE_REPEATS_MSG_KEY} // 1) { }
231 2 14 if ($trace eq 'long' or $trace eq 'full') { }
13 1 elsif ($trace eq 'short' or $trace eq 'small') { }
1 0 elsif ($trace eq 'none' or $trace eq 'no') { }
277 0 9 if defined $logger
307 3 6 if _should_die($name, $hint_hash)
321 0 2 unless defined $log_from
328 2 3 if $num_level > $log_from
329 1 2 if ($num_level >= $numeric_debug) { }
350 0 6 if $ARGV[$i] eq "--"
351 3 3 unless $ARGV[$i] =~ /^--?log(?:=(.*))?$/
352 1 2 if $i == $#ARGV and not defined $1
354 1 1 if (defined $1) { }