Branch Coverage

lib/Test/BDD/Cucumber/Harness/TermColor.pm
Criterion Covered Total %
branch 26 36 72.2


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 10 unless $feature->satisfaction
162 0 69 unless $scenario->description
185 9 347 if ($status eq 'undefined' or $status eq 'pending') { }
346 1 elsif ($status eq 'passing') { }
194 1 0 unless ($context->is_hook)
205 66 290 if ($context->is_hook) { }
281 9 elsif ($highlights) { }
206 66 0 unless $failed
236 0 290 unless $step
238 277 13 unless @step_data
253 4 9 if (ref $step->data eq 'ARRAY') { }
268 428 0 ref $class ? :
279 290 138 if ($options->{'highlight'} and $options->{'highlights'}) { }
286 277 789 $flag ? :
300 59 369 unless $options->{'follow_up'}
309 10 418 if $options->{'trailing'}