line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Pcuke::Gherkin::Node::Scenarios; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
72980
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
100
|
|
4
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
100
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
17
|
use base 'Test::Pcuke::Gherkin::Node'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
1682
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Test::Pcuke::Gherkin::Node::Scenarios - scenarios aka examples |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 SYNOPSIS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
TODO SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use Test::Pcuke::Gherkin::Node::Scenarios; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
my $scenarios = Test::Pcuke::Gherkin::Node::Scenarios->new(); |
18
|
|
|
|
|
|
|
# TODO code example |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 METHODS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 new |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=cut |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub new { |
27
|
4
|
|
|
4
|
1
|
2082
|
my ($class, $args) = @_; |
28
|
|
|
|
|
|
|
|
29
|
4
|
|
|
|
|
25
|
my $self = $class->SUPER::new( |
30
|
|
|
|
|
|
|
immutables => [qw{title table}], |
31
|
|
|
|
|
|
|
args => $args, |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
4
|
|
|
|
|
13
|
return $self; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
0
|
12
|
sub set_title { $_[0]->_set_immutable('title', $_[1]) } |
38
|
2
|
50
|
|
2
|
0
|
16
|
sub title { $_[0]->_get_immutable('title') || q{} } |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
0
|
1373
|
sub set_table { $_[0]->_set_immutable('table', $_[1]) } |
41
|
5
|
|
|
5
|
0
|
5211
|
sub table { $_[0]->_get_immutable('table') } |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub execute { |
44
|
1
|
|
|
1
|
0
|
8
|
my ($self, $steps, $background) = @_; |
45
|
|
|
|
|
|
|
|
46
|
1
|
|
|
|
|
4
|
$self->table->execute( $steps, $background ); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
1
|
|
|
1
|
0
|
6
|
sub nsteps { $_[0]->table->nsteps } |
50
|
1
|
|
|
1
|
0
|
982
|
sub nscenarios { $_[0]->table->nscenarios } |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; # End of Test::Pcuke::Gherkin::Node::Scenarios |
55
|
|
|
|
|
|
|
__END__ |