| line |
true |
false |
branch |
|
65
|
0 |
29 |
unless open my $in, "<", $string |
|
68
|
0 |
29 |
unless close $in |
|
89
|
0 |
61 |
unless my $langdef = langdef($feature->language) |
|
129
|
816 |
216 |
if ($continuation) { } |
|
171
|
55 |
6 |
unless $lines and @$lines and $lines->[0]->raw_content =~ /^\s*#\s*language:\s+([^\s]+)/u |
|
195
|
12 |
68 |
if $line->is_comment |
|
196
|
0 |
68 |
if $line->is_blank |
|
198
|
61 |
7 |
if (my($keyword, $name) = $self->_is_feature_line($line->content)) { } |
|
|
7 |
0 |
elsif ($line->content =~ /^\s*\@\w/u) { } |
|
229
|
59 |
179 |
if $line->is_comment or $line->is_blank |
|
231
|
60 |
119 |
if ($self->_is_scenario_line($line->content) or $self->_is_tags_line($line->content)) { } |
|
246
|
195 |
81 |
if (@{$feature->scenarios;}) |
|
248
|
1 |
194 |
if ($last_scenario->keyword_original =~ /^($self->{'langdef'}{'scenarioOutline'})/u and not @{$last_scenario->datasets;}) |
|
265
|
28 |
275 |
if $line->is_comment or $line->is_blank |
|
267
|
36 |
239 |
if (my($type, $name) = $self->_is_examples_line($line->content)) { } |
|
|
215 |
24 |
elsif (($type, $name) = $self->_is_scenario_line($line->content)) { } |
|
|
24 |
0 |
elsif ($line->content =~ /^\s*\@\w/u) { } |
|
271
|
0 |
36 |
unless @{$feature->scenarios;} |
|
276
|
0 |
36 |
$name ? : |
|
|
0 |
36 |
@tags ? : |
|
287
|
1 |
35 |
if (@{$feature->scenarios->[-1]->datasets;}) |
|
291
|
0 |
1 |
if $prev_ds_cols ne $cur_ds_cols |
|
306
|
0 |
215 |
if ($scenarios++ and $type =~ /^($langdef->{'background'})/u) |
|
322
|
169 |
46 |
$name ? : |
|
|
20 |
195 |
$type =~ /^($langdef->{'background'})/u ? : |
|
|
2 |
193 |
$type =~ /^($langdef->{'scenarioOutline'})/u ? : |
|
|
20 |
195 |
$type =~ /^($langdef->{'background'})/u ? : |
|
331
|
20 |
195 |
if ($type =~ /^($langdef->{'background'})/u) { } |
|
363
|
4 |
653 |
if $line->is_comment |
|
366
|
221 |
432 |
if $verb =~ /^($langdef->{'given'})$/u |
|
367
|
107 |
546 |
if $verb =~ /^($langdef->{'when'})$/u |
|
368
|
179 |
474 |
if $verb =~ /^($langdef->{'then'})$/u |
|
369
|
146 |
507 |
if $verb =~ /^($langdef->{'and'})$/u or $verb =~ /^($langdef->{'but'}$)/u |
|
400
|
0 |
36 |
if $line->is_comment |
|
403
|
0 |
0 |
if $self->_is_table_line($content) or $self->_is_examples_line($content) or $self->_is_tags_line($content) or $self->_is_scenario_line($content) |
|
433
|
51 |
602 |
unless @lines |
|
435
|
36 |
566 |
if ($lines[0]->content eq '"""') { } |
|
|
15 |
551 |
elsif ($lines[0]->content =~ /^\s*\|/u) { } |
|
456
|
36 |
97 |
if ($line->content eq "\"\"\"") |
|
481
|
0 |
236 |
if $line->is_comment |
|
482
|
42 |
194 |
if index $line->content, "|" |
|
485
|
56 |
138 |
if ($target->can("data_as_strings")) |
|
491
|
143 |
51 |
if (@columns) { } |
|
492
|
0 |
143 |
unless @rows == @columns |
|
495
|
41 |
102 |
if $target->can("columns") |