Branch Coverage

blib/lib/Test/BDD/Cucumber/Executor.pm
Criterion Covered Total %
branch 68 94 72.3


line true false branch
124 46 93 if (@$_ == 3) { }
133 44 95 unless (ref $match)
139 6 133 if ($verb eq 'transform' or $verb eq 'after') { }
165 8 23 $feature->background ? :
218 12 0 if ($spec->isa('Cucumber::TagExpressions::ExpressionNode')) { }
238 81 15 unless (@datasets)
239 75 6 if (not $tagspec or _match_tags($tagspec, $outline))
255 0 15 if ($tagspec)
257 0 0 unless @datasets
325 22 412 defined $data ? :
7 434 ref $data ? :
352 26 415 unless ($result->result eq "passing")
366 152 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 93 if ($background_obj)
480 85 0 exists $dataset->{$2} ? :
524 13 440 if $short_circuit
531 440 0 if ($self->matching eq 'first') { }
533 5 435 unless $self->{'steps'}{$context->verb}
534 435 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 436 unless ($stepdef)
596 0 628 if $short_circuit
603 12 616 $redispatch ? :
654 0 628 if ($@) { }
678 0 628 if $stash_keys ne join(";", sort(keys %{$context->stash;}))
682 303 325 unless @clean_matches
687 616 12 unless $redispatch
697 839 207 if $_->[0] != $_->[1]
701 1046 0 if defined $_ and ref $_ and defined $_->[0]
704 303 325 unless @match_locations
715 654 9495 if ($parts[-1][0] != $to_highlight)
742 0 1664 if ($event->{'subevents'}) { }
756 6 622 if (&any(sub { not $_->{'effective_pass'} if defined $_->{'effective_pass'}; } , @$events)) { }
757 628 628 if defined $_->{'effective_pass'}
761 3 619 $self->_test_status_from_subevents($events) ? :
770 622 2243 if (exists $e->{'subevents'}) { }
3 2240 elsif (defined $e->{'amnesty'} and $e->{'effective_pass'} and not $e->{'pass'} and &any(sub { $_->{'tag'} eq 'TODO'; } , @{$$e{'amnesty'};})) { }
772 3 619 if $self->_test_status_from_subevents($e->{'subevents'})
795 0 17 $redispatch ? :
810 17 0 unless $redispatch