line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
17
|
|
|
17
|
|
215
|
use v5.14; |
|
17
|
|
|
|
|
58
|
|
2
|
17
|
|
|
17
|
|
106
|
use warnings; |
|
17
|
|
|
|
|
48
|
|
|
17
|
|
|
|
|
798
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::BDD::Cucumber::Model::Dataset 0.85; |
5
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
6407
|
use Moo; |
|
17
|
|
|
|
|
127740
|
|
|
17
|
|
|
|
|
99
|
|
7
|
17
|
|
|
17
|
|
25546
|
use Types::Standard qw( Str ArrayRef HashRef Bool InstanceOf ); |
|
17
|
|
|
|
|
853914
|
|
|
17
|
|
|
|
|
197
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Test::BDD::Cucumber::Model::Scenario - Model to represent a scenario |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 VERSION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
version 0.85 |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Model to represent a scenario |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 name |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
The text after the C keyword |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has 'name' => ( is => 'rw', isa => Str ); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 description |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
The text between the Scenario line and the first step line |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
has 'description' => ( |
39
|
|
|
|
|
|
|
is => 'rw', |
40
|
|
|
|
|
|
|
isa => ArrayRef[InstanceOf['Test::BDD::Cucumber::Model::Line']], |
41
|
|
|
|
|
|
|
default => sub { [] }, |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 data |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Scenario-related data table, as an arrayref of hashrefs |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
has 'data' => ( is => 'rw', isa => ArrayRef[HashRef], default => sub { [] } ); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 line |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
A L object corresponding to the line where |
55
|
|
|
|
|
|
|
the C keyword is. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
has 'line' => ( is => 'rw', isa => InstanceOf['Test::BDD::Cucumber::Model::Line'] ); |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 tags |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Tags that the scenario has been tagged with, and has inherited from its |
64
|
|
|
|
|
|
|
feature. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
has 'tags' => ( is => 'rw', isa => ArrayRef[Str], default => sub { [] } ); |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 AUTHOR |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Peter Sergeant C |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 LICENSE |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Copyright 2019-2023, Erik Huelsmann |
77
|
|
|
|
|
|
|
Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |