Branch Coverage

lib/Test/BDD/Cucumber/Harness/TermColor.pm
Criterion Covered Total %
branch 18 36 50.0


line true false branch
34 0 0 if ($^O =~ /MSWin32/i and not $ENV{'ANSI_COLORS_DISABLED'} and not $ENV{'DISABLE_WIN32_FALLBACK'})
48 0 0 if ($@)
136 0 1 unless $feature->satisfaction
161 0 1 unless $scenario->description
184 1 1 if ($status eq 'undefined' or $status eq 'pending') { }
1 0 elsif ($status eq 'passing') { }
193 0 0 unless ($context->is_hook)
204 0 2 if ($context->is_hook) { }
1 1 elsif ($highlights) { }
205 0 0 unless $failed
235 0 2 unless $step
237 2 0 unless @step_data
252 0 0 if (ref $step->data eq 'ARRAY') { }
267 4 0 ref $class ? :
278 2 2 if ($options->{'highlight'} and $options->{'highlights'}) { }
285 4 6 $flag ? :
299 0 4 unless $options->{'follow_up'}
308 1 3 if $options->{'trailing'}