| 1 | package Test::Pcuke::Gherkin::Executor; | ||
| 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 Test::Pcuke::Gherkin::Executor::Status; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Test::Pcuke::Gherkin::Executor - do nothing step executor | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | TODO SYNOPSIS | ||
| 15 | |||
| 16 | use Test::Pcuke::Gherkin::Executor; | ||
| 17 | |||
| 18 | # TODO code sample | ||
| 19 | ... | ||
| 20 | |||
| 21 | =head1 METHODS | ||
| 22 | |||
| 23 | =head2 new | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | 14 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 28 | 14 | my ($self) = @_; | |
| 29 | 14 | my $instance = {}; | |
| 30 | |||
| 31 | 14 | bless $instance, $self; | |
| 32 | } | ||
| 33 | |||
| 34 | 1 | ▶ | sub execute { |
|
Subroutine
execute: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 35 | 1 | my ($self, $step) = @_; | |
| 36 | |||
| 37 | 1 | my $warning = | |
| 38 | 'Default executor does nothing with the step ' | ||
| 39 | . $step->type | ||
| 40 | . ' ' | ||
| 41 | . $step->title; | ||
| 42 | 1 | warn $warning; | |
| 43 | |||
| 44 | 1 | return Test::Pcuke::Gherkin::Executor::Status->new; | |
| 45 | } | ||
| 46 | |||
| 47 | 3 | 1; # End of Test::Pcuke::Gherkin::Executor | |
| 48 | __END__ | ||