Branch Coverage

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


line true false branch
35 0 0 if ($^O =~ /MSWin32/iu and not $ENV{'ANSI_COLORS_DISABLED'} and not $ENV{'DISABLE_WIN32_FALLBACK'})
49 0 0 if ($@)
137 0 1 unless $feature->satisfaction
162 0 1 unless $scenario->description
185 1 1 if ($status eq 'undefined' or $status eq 'pending') { }
1 0 elsif ($status eq 'passing') { }
194 0 0 unless ($context->is_hook)
205 0 2 if ($context->is_hook) { }
1 1 elsif ($highlights) { }
206 0 0 unless $failed
236 0 2 unless $step
238 2 0 unless @step_data
253 0 0 if (ref $step->data eq 'ARRAY') { }
268 4 0 ref $class ? :
279 2 2 if ($options->{'highlight'} and $options->{'highlights'}) { }
286 4 6 $flag ? :
300 0 4 unless $options->{'follow_up'}
309 1 3 if $options->{'trailing'}