Branch Coverage

blib/lib/Test/BDD/Cucumber/Executor.pm
Criterion Covered Total %
branch 66 94 70.2


line true false branch
124 46 89 if (@$_ == 3) { }
133 44 91 unless (ref $match)
139 6 129 if ($verb eq 'transform' or $verb eq 'after') { }
165 8 19 $feature->background ? :
218 0 0 if ($spec->isa('Cucumber::TagExpressions::ExpressionNode')) { }
238 69 15 unless (@datasets)
239 69 0 if (not $tagspec or _match_tags($tagspec, $outline))
255 0 15 if ($tagspec)
257 0 0 unless @datasets
325 22 406 defined $data ? :
7 428 ref $data ? :
352 26 409 unless ($result->result eq "passing")
366 140 96 unless $self->{'steps'}{$phase}
374 96 96 $want_short ? :
378 0 192 unless ($result->result eq "passing")
379 0 0 if ($want_short)
429 31 87 if ($background_obj)
480 85 0 exists $dataset->{$2} ? :
524 13 434 if $short_circuit
531 434 0 if ($self->matching eq 'first') { }
533 5 429 unless $self->{'steps'}{$context->verb}
534 429 5 unless $self->{'steps'}{'step'}
538 0 0 unless $self->{'steps'}{$context->verb}
539 0 0 unless $self->{'steps'}{'step'}
541 0 0 if (@stepdefs > 1)
550 0 0 $_->[1]{'source'} && $_->[1]{'line'} ? :
553 0 0 if ($self->matching eq 'relaxed') { }
564 4 430 unless ($stepdef)
596 0 622 if $short_circuit
603 12 610 $redispatch ? :
654 0 622 if ($@) { }
678 0 622 if $stash_keys ne join(";", sort(keys %{$context->stash;}))
682 297 325 unless @clean_matches
687 610 12 unless $redispatch
697 833 207 if $_->[0] != $_->[1]
701 1040 0 if defined $_ and ref $_ and defined $_->[0]
704 297 325 unless @match_locations
715 654 9495 if ($parts[-1][0] != $to_highlight)
742 0 1652 if ($event->{'subevents'}) { }
756 6 616 if (&any(sub { not $_->{'effective_pass'} if defined $_->{'effective_pass'}; } , @$events)) { }
757 622 622 if defined $_->{'effective_pass'}
761 3 613 $self->_test_status_from_subevents($events) ? :
770 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'};})) { }
772 3 613 if $self->_test_status_from_subevents($e->{'subevents'})
795 0 17 $redispatch ? :
810 17 0 unless $redispatch