Branch Coverage

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


line true false branch
42 27 7 unless ($config)
47 1 6 exists $log_formats->{$config} ? :
55 1 3053 unless (exists $levels->{$conf_level})
67 3 28 if setting("charset")
70 5 26 if $level eq "warning"
78 1 1 if ($type eq 't') { }
1 0 elsif ($type eq 'h') { }
82 0 1 unless defined $r
94 0 1 defined $r ? :
110 16 10 unless $stack[1]
111 16 10 unless $stack[2]
113 2 24 defined $r ? :
121 1 189 unless ($cb)
135 2 190 $1 ? :
140 1 2973 if $_[0]->_should("core")
141 10 4 if $_[0]->_should("debug")
142 5 2 if $_[0]->_should("info")
143 11 1 if $_[0]->_should("warning")
144 47 0 if $_[0]->_should("error")