| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Test::Pcuke::Gherkin::Executor; |
|
2
|
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
130014
|
use warnings; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
99
|
|
|
4
|
3
|
|
|
3
|
|
17
|
use strict; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
107
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
1960
|
use Test::Pcuke::Gherkin::Executor::Status; |
|
|
3
|
|
|
|
|
8
|
|
|
|
3
|
|
|
|
|
386
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Test::Pcuke::Gherkin::Executor - do nothing step executor |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
TODO SYNOPSIS |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use Test::Pcuke::Gherkin::Executor; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# TODO code sample |
|
19
|
|
|
|
|
|
|
... |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 METHODS |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 new |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new { |
|
28
|
14
|
|
|
14
|
1
|
1855
|
my ($self) = @_; |
|
29
|
14
|
|
|
|
|
23
|
my $instance = {}; |
|
30
|
|
|
|
|
|
|
|
|
31
|
14
|
|
|
|
|
75
|
bless $instance, $self; |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub execute { |
|
35
|
1
|
|
|
1
|
0
|
7
|
my ($self, $step) = @_; |
|
36
|
|
|
|
|
|
|
|
|
37
|
1
|
|
|
|
|
10
|
my $warning = |
|
38
|
|
|
|
|
|
|
'Default executor does nothing with the step ' |
|
39
|
|
|
|
|
|
|
. $step->type |
|
40
|
|
|
|
|
|
|
. ' ' |
|
41
|
|
|
|
|
|
|
. $step->title; |
|
42
|
1
|
|
|
|
|
340
|
warn $warning; |
|
43
|
|
|
|
|
|
|
|
|
44
|
1
|
|
|
|
|
10
|
return Test::Pcuke::Gherkin::Executor::Status->new; |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; # End of Test::Pcuke::Gherkin::Executor |
|
48
|
|
|
|
|
|
|
__END__ |