Branch Coverage

blib/lib/Treex/Core/Log.pm
Criterion Covered Total %
branch 14 38 36.8


line true false branch
70 0 7 unless (defined $ERROR_LEVEL_VALUE{$new_error_level})
84 0 11 if ($unfinished_line)
89 0 11 if ($current_error_level_value <= $ERROR_LEVEL_VALUE{'DEBUG'})
90 0 0 if ($Treex::Core::Log::OS_ERROR)
93 0 0 if ($Treex::Core::Log::EVAL_ERROR)
107 1 2 if ($current_error_level_value <= $ERROR_LEVEL_VALUE{'WARN'})
109 0 1 if ($unfinished_line)
115 0 1 if ($carp) { }
128 0 25 if ($current_error_level_value <= $ERROR_LEVEL_VALUE{'DEBUG'})
130 0 0 if ($unfinished_line)
136 0 0 if ($no_print_stack) { }
149 34 12 if ($current_error_level_value <= $ERROR_LEVEL_VALUE{'INFO'})
152 0 34 if ($unfinished_line and not $same_line)
156 34 0 unless ($same_line and $unfinished_line)
161 0 34 if ($same_line) { }
169 0 34 if ($same_line)
178 0 0 if $current_error_level_value > $ERROR_LEVEL_VALUE{'INFO'}
179 0 0 unless ($unfinished_line)
202 0 0 if ($pos < 0 or $pos >= scalar @{$hooks{$level};})