Branch Coverage

blib/lib/Test/BDD/Cucumber/Executor.pm
Criterion Covered Total %
branch 66 92 71.7


line true false branch
119 46 89 if (@$_ == 3) { }
128 44 91 unless (ref $match)
134 6 129 if ($verb eq 'transform' or $verb eq 'after') { }
160 8 19 $feature->background ? :
216 69 15 unless (@datasets)
217 69 0 if (not $tagspec or $tagspec->filter($outline))
233 0 15 if ($tagspec)
235 0 0 unless @datasets
303 22 406 defined $data ? :
7 428 ref $data ? :
330 26 409 unless ($result->result eq "passing")
344 140 96 unless $self->{'steps'}{$phase}
352 96 96 $want_short ? :
356 0 192 unless ($result->result eq "passing")
357 0 0 if ($want_short)
407 31 87 if ($background_obj)
458 85 0 exists $dataset->{$2} ? :
502 13 434 if $short_circuit
509 434 0 if ($self->matching eq 'first') { }
511 5 429 unless $self->{'steps'}{$context->verb}
512 429 5 unless $self->{'steps'}{'step'}
516 0 0 unless $self->{'steps'}{$context->verb}
517 0 0 unless $self->{'steps'}{'step'}
519 0 0 if (@stepdefs > 1)
528 0 0 $_->[1]{'source'} && $_->[1]{'line'} ? :
531 0 0 if ($self->matching eq 'relaxed') { }
542 4 430 unless ($stepdef)
574 0 622 if $short_circuit
581 12 610 $redispatch ? :
632 0 622 if ($@) { }
656 0 622 if $stash_keys ne join(";", sort(keys %{$context->stash;}))
660 297 325 unless @clean_matches
665 610 12 unless $redispatch
675 833 207 if $_->[0] != $_->[1]
679 1040 0 if defined $_ and ref $_ and defined $_->[0]
682 297 325 unless @match_locations
693 654 9495 if ($parts[-1][0] != $to_highlight)
720 0 1652 if ($event->{'subevents'}) { }
734 6 616 if (&any(sub { not $_->{'effective_pass'} if defined $_->{'effective_pass'}; } , @$events)) { }
735 622 622 if defined $_->{'effective_pass'}
739 3 613 $self->_test_status_from_subevents($events) ? :
748 616 2225 if (exists $e->{'subevents'}) { }
3 2222 elsif (defined $e->{'amnesty'} and $e->{'effective_pass'} and not $e->{'pass'} and &any(sub { $_->{'tag'} eq 'TODO'; } , @{$$e{'amnesty'};})) { }
750 3 613 if $self->_test_status_from_subevents($e->{'subevents'})
773 0 17 $redispatch ? :
788 17 0 unless $redispatch