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