Branch Coverage

blib/lib/Dancer2/Logger/Console/Colored.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
53 21 27 if $self->colored_origin
62 0 16 if $level_tmp eq 'warn'
65 7 9 if $self->colored_levels->{$level_tmp}
68 1 8 if $level_tmp eq 'core'
69 2 6 if $level_tmp eq 'debug'
70 2 4 if $level_tmp eq 'info'
71 2 2 if $level_tmp eq 'warning'
72 2 0 if $level_tmp eq 'error'
79 0 16 if $level_tmp eq 'warn'
83 2 1 if ($message =~ /$pattern->{'re'}/)
90 5 9 if $self->colored_messages->{$level_tmp}
93 1 8 if $level_tmp eq 'core'
94 2 6 if $level_tmp eq 'debug'
95 2 4 if $level_tmp eq 'info'
96 2 2 if $level_tmp eq 'warning'
97 2 0 if $level_tmp eq 'error'
108 0 17 if $self->auto_encoding_charset
117 0 0 if ($type eq 't') { }
0 0 elsif ($type eq 'h') { }
147 0 0 unless $request and $request->id
154 0 113 unless ($cb)
168 0 113 $1 ? :