Branch Coverage

blib/lib/Test/BDD/Cucumber/StepContext.pm
Criterion Covered Total %
branch 21 34 61.7


line true false branch
208 0 29 if (@_)
228 622 226 if (@_)
248 12 293 unless defined $value
264 4 744 if ($value =~ s/$transformer->[0]/my $value = $transformer->[2]->($self); defined $value ? $value : "__UNDEF__";/e)
267 4 0 defined $value ? :
272 0 4 $value eq '__UNDEF__' ? :
367 0 12 if ($data)
368 0 0 if (ref $data eq 'HASH') { }
0 0 elsif (ref $data eq 'ARRAY' and scalar @{$data;} > 0 and ref $data->[0] eq 'HASH') { }
386 0 12 $data ? :
0 12 $data ? :
0 12 $columns ? :
403 0 12 unless ($result->result eq "passing")
418 192 307 $self->verb eq 'before' || $self->verb eq 'after' ? :
429 226 0 if ($self->verb ne "transform" and $self->has_transformers)
450 7 22 if ($self->verb ne "transform" and ref $transformed_data and $self->has_transformers)
458 2 5 if (my $transformer = &first(sub { $table_text =~ /$_->[0]/; } , @{$self->transformers;}))