1Test::Stream::Workflow:U:sTearskC(o3n)tributed Perl DocuTmeesntt:a:tSitorneam::Workflow::Task(3)
2
3
4

NAME

6       Test::Stream::Workflow::Task - Compiled form of a unit.
7

DEPRECATED

9       This distribution is deprecated in favor of Test2, Test2::Suite, and
10       Test2::Workflow.
11
12       See Test::Stream::Manual::ToTest2 for a conversion guide.
13

EXPERIMENTAL CODE WARNING

15       "This module is still EXPERIMENTAL". Test-Stream is now stable, but
16       this particular module is still experimental. You are still free to use
17       this module, but you have been warned that it may change in backwords
18       incompatible ways.  This message will be removed from this modules POD
19       once it is considered stable.
20

DESCRIPTION

22       This object is a temporary object created by a runner to process
23       Test::Stream::Workflow::Unit objects.
24

SYNOPSIS

26       You rarely encounter a task object, they are mainyl used under the
27       hood. When you do get one you usually just want to call "iterate()" on
28       it. This can be done by treating it as a coderef.
29
30           $task->();
31
32       Or direcectly:
33
34           $task->iterate();
35

METHODS

37       $task->run()
38           Run the task, this should only every be done by a runner.
39
40       $task->iterate()
41           Sometimes tasks are recursive. This method is how they resume
42           running in a recursive structure.
43
44       $task->reset()
45           Reset the task. This is rarely needed.
46
47       $ar = $task->args()
48           Get the args that will be passed to the primary actions.
49
50       $bool = $task->finished()
51           Check if the task has finished running.
52
53       $bool = $task->no_final()
54           True if the task is not required to generate events.
55
56       $bool = $task->should_run()
57           True if there is still work to be done.
58
59       $bool = $task->subtest()
60           True if the task should produce a subtest.
61
62       $int = $task->events()
63           Number of events produced by the primary actions.
64
65       $int = $task->failed()
66           Number of failures produced inside the primary actions.
67
68       $int = $task->pending()
69           How many pending iterations remain.
70
71       $int = $task->stage()
72           What stage the task is in.
73
74       $msg = $task->exception()
75           If an exception has occured the message will be stored here.
76
77       $unit = $task->unit()
78           Get the unit the task wraps.
79
80       $runner = $task->runner()
81           Get the runner instance and/or class.
82

SOURCE

84       The source code repository for Test::Stream can be found at
85       http://github.com/Test-More/Test-Stream/.
86

MAINTAINERS

88       Chad Granum <exodist@cpan.org>
89

AUTHORS

91       Chad Granum <exodist@cpan.org>
92
94       Copyright 2015 Chad Granum <exodist7@gmail.com>.
95
96       This program is free software; you can redistribute it and/or modify it
97       under the same terms as Perl itself.
98
99       See http://dev.perl.org/licenses/
100
101
102
103perl v5.28.0                      2016-02-05   Test::Stream::Workflow::Task(3)
Impressum