Branch Coverage

blib/lib/Dancer/Logger/Abstract.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
41 27 7 unless ($config)
46 1 6 exists $log_formats->{$config} ? :
54 1 3044 unless (exists $levels->{$conf_level})
66 3 28 if setting("charset")
69 5 26 if $level eq "warning"
77 1 1 if ($type eq 't') { }
1 0 elsif ($type eq 'h') { }
81 0 1 unless defined $r
93 0 1 defined $r ? :
109 16 10 unless $stack[1]
110 16 10 unless $stack[2]
112 2 24 defined $r ? :
120 1 189 unless ($cb)
134 2 190 $1 ? :
139 1 2964 if $_[0]->_should("core")
140 10 4 if $_[0]->_should("debug")
141 5 2 if $_[0]->_should("info")
142 11 1 if $_[0]->_should("warning")
143 47 0 if $_[0]->_should("error")