Branch Coverage

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


line true false branch
124 46 150 if (@$_ == 3) { }
133 59 137 unless (ref $match)
139 12 184 if ($verb eq 'transform' or $verb eq 'after') { }
165 15 25 $feature->background ? :
218 12 0 if ($spec->isa('Cucumber::TagExpressions::ExpressionNode')) { }
238 116 25 unless (@datasets)
239 110 6 if (not $tagspec or _match_tags($tagspec, $outline))
256 0 25 if ($tagspec)
259 0 0 unless (@datasets)
330 31 687 defined $data ? :
11 718 ref $data ? :
357 35 694 unless ($result->result eq "passing")
371 222 162 unless $self->{'steps'}{$phase}
379 129 129 $want_short ? :
383 0 258 unless ($result->result eq "passing")
384 0 0 if ($want_short)
434 66 126 if ($background_obj)
485 167 0 exists $dataset->{$2} ? :
529 19 734 if $short_circuit
536 734 0 if ($self->matching eq 'first') { }
538 5 729 unless $self->{'steps'}{$context->verb}
539 729 5 unless $self->{'steps'}{'step'}
543 0 0 unless $self->{'steps'}{$context->verb}
544 0 0 unless $self->{'steps'}{'step'}
546 0 0 if (@stepdefs > 1)
555 0 0 $_->[1]{'source'} && $_->[1]{'line'} ? :
558 0 0 if ($self->matching eq 'relaxed') { }
569 6 728 unless ($stepdef)
601 0 986 if $short_circuit
608 24 962 $redispatch ? :
659 0 986 if ($@) { }
683 0 986 if $stash_keys ne join(";", sort(keys %{$context->stash;}))
687 415 571 unless @clean_matches
692 962 24 unless $redispatch
702 1416 273 if $_->[0] != $_->[1]
706 1689 0 if defined $_ and ref $_ and defined $_->[0]
709 415 571 unless @match_locations
720 1154 16417 if ($parts[-1][0] != $to_highlight)
747 0 2618 if ($event->{'subevents'}) { }
761 7 979 if (&any(sub { not $_->{'effective_pass'} if defined $_->{'effective_pass'}; } , @$events)) { }
762 986 986 if defined $_->{'effective_pass'}
766 3 976 $self->_test_status_from_subevents($events) ? :
775 979 3548 if (exists $e->{'subevents'}) { }
3 3545 elsif (defined $e->{'amnesty'} and $e->{'effective_pass'} and not $e->{'pass'} and &any(sub { $_->{'tag'} eq 'TODO'; } , @{$$e{'amnesty'};})) { }
777 3 976 if $self->_test_status_from_subevents($e->{'subevents'})
800 0 25 $redispatch ? :
815 25 0 unless $redispatch