Branch Coverage

blib/lib/Treex/Core/Log.pm
Criterion Covered Total %
branch 9 38 23.6


line true false branch
70 0 6 unless (defined $ERROR_LEVEL_VALUE{$new_error_level})
84 0 10 if ($unfinished_line)
89 0 10 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 0 2 if ($current_error_level_value <= $ERROR_LEVEL_VALUE{'WARN'})
109 0 0 if ($unfinished_line)
115 0 0 if ($carp) { }
128 0 0 if ($current_error_level_value <= $ERROR_LEVEL_VALUE{'DEBUG'})
130 0 0 if ($unfinished_line)
136 0 0 if ($no_print_stack) { }
149 25 0 if ($current_error_level_value <= $ERROR_LEVEL_VALUE{'INFO'})
152 0 25 if ($unfinished_line and not $same_line)
156 25 0 unless ($same_line and $unfinished_line)
161 0 25 if ($same_line) { }
169 0 25 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};})