Branch Coverage

blib/lib/Dancer2/Logger/Console/Colored.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
50 21 27 if $self->colored_origin
59 0 16 if $level_tmp eq 'warn'
62 7 9 if $self->colored_levels->{$level_tmp}
65 1 8 if $level_tmp eq 'core'
66 2 6 if $level_tmp eq 'debug'
67 2 4 if $level_tmp eq 'info'
68 2 2 if $level_tmp eq 'warning'
69 2 0 if $level_tmp eq 'error'
76 0 16 if $level_tmp eq 'warn'
80 2 1 if ($message =~ /$pattern->{'re'}/)
87 5 9 if $self->colored_messages->{$level_tmp}
90 1 8 if $level_tmp eq 'core'
91 2 6 if $level_tmp eq 'debug'
92 2 4 if $level_tmp eq 'info'
93 2 2 if $level_tmp eq 'warning'
94 2 0 if $level_tmp eq 'error'
105 0 16 if $self->auto_encoding_charset
112 0 0 if ($type eq 't') { }
140 0 112 unless ($cb)
154 0 112 $1 ? :