File Coverage

blib/lib/Test/BDD/Cucumber/Model/Dataset.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


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