blib/lib/Test/BDD/Cucumber/Model/Dataset.pm

filter: Statementstmt 95.0% 19 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 92.5% 25 / 27 CC 1 SCAR 0.2
CC
1
Cov
95%
__ANON__
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« examples/i18n_de/features/step_definitions/calculator_steps.pl ↑ Summary blib/lib/Test/BDD/Cucumber/Util.pm »
1 27 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 27 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Test::BDD::Cucumber::Model::Dataset 0.87;
5  
6 27 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 27 ▶use Types::Standard qw( Str ArrayRef HashRef Bool InstanceOf );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 =head1 NAME
10  
11 Test::BDD::Cucumber::Model::Scenario - Model to represent a scenario
12  
13 =head1 VERSION
14  
15 version 0.87
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<Examples:> keyword
26  
27 =cut
28  
29 27 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 36 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
42 27 );
43  
44 =head2 data
45  
46 Scenario-related data table, as an arrayref of hashrefs
47  
48 =cut
49  
50 36 ▶has 'data' => ( is => 'rw', isa => ArrayRef[HashRef], default => sub { [] } );
Subroutine __ANON__: called CC=1 SCAR=0.0
51  
52 =head2 line
53  
54 A L<Test::BDD::Cucumber::Model::Line> object corresponding to the line where
55 the C<Scenario> keyword is.
56  
57 =cut
58  
59 27 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 0 ▶has 'tags' => ( is => 'rw', isa => ArrayRef[Str], default => sub { [] } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
69  
70 =head1 AUTHOR
71  
72 Peter Sergeant C<pete@clueball.com>
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 27 1;
« examples/i18n_de/features/step_definitions/calculator_steps.pl ↑ Summary blib/lib/Test/BDD/Cucumber/Util.pm »