Gherkin/Node/Scenarios.pm

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 11 / 11 Podpod 12.5% 1 / 8 totaltotal 80.9% 34 / 42 CC 2 SCAR 1.8
CC
2
Cov
96%
title
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Gherkin.pm ↑ Summary Gherkin/Executor.pm »
1 package Test::Pcuke::Gherkin::Node::Scenarios;
2  
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use base 'Test::Pcuke::Gherkin::Node';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 4 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
27 4 my ($class, $args) = @_;
28
29 4 my $self = $class->SUPER::new(
30 immutables => [qw{title table}],
31 args => $args,
32 );
33
34 4 return $self;
35 }
36  
37 1 ▶sub set_title { $_[0]->_set_immutable('title', $_[1]) }
Subroutine set_title: called CC=1 SCAR=0.0
Pod undocumented
38 2 ▶sub title { $_[0]->_get_immutable('title') || q{} }
Subroutine title: called CC=2 SCAR=7.6
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->_get_immutable("title") or "" 2 0 2
39  
40 1 ▶sub set_table { $_[0]->_set_immutable('table', $_[1]) }
Subroutine set_table: called CC=1 SCAR=0.0
Pod undocumented
41 5 ▶sub table { $_[0]->_get_immutable('table') }
Subroutine table: called CC=1 SCAR=0.0
Pod undocumented
42  
43 1 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod undocumented
44 1 my ($self, $steps, $background) = @_;
45
46 1 $self->table->execute( $steps, $background );
47 }
48  
49 1 ▶sub nsteps { $_[0]->table->nsteps }
Subroutine nsteps: called CC=1 SCAR=0.0
Pod undocumented
50 1 ▶sub nscenarios { $_[0]->table->nscenarios }
Subroutine nscenarios: called CC=1 SCAR=0.0
Pod undocumented
51  
52  
53  
54 3 1; # End of Test::Pcuke::Gherkin::Node::Scenarios
55 __END__
« Gherkin.pm ↑ Summary Gherkin/Executor.pm »