Test::Stream::Workflow::Task - Compiled form of a unit.
This module is still EXPERIMENTAL. Test-Stream is now stable, but this particular module is still experimental. You are still free to use this module, but you have been warned that it may change in backwords incompatible ways. This message will be removed from this modules POD once it is considered stable.
This module is still EXPERIMENTAL
This object is a temporary object created by a runner to process Test::Stream::Workflow::Unit objects.
You rarely encounter a task object, they are mainyl used under the hood. When you do get one you usually just want to call iterate() on it. This can be done by treating it as a coderef.
iterate()
$task->();
Or direcectly:
$task->iterate();
Run the task, this should only every be done by a runner.
Sometimes tasks are recursive. This method is how they resume running in a recursive structure.
Reset the task. This is rarely needed.
Get the args that will be passed to the primary actions.
Check if the task has finished running.
True if the task is not required to generate events.
True if there is still work to be done.
True if the task should produce a subtest.
Number of events produced by the primary actions.
Number of failures produced inside the primary actions.
How many pending iterations remain.
What stage the task is in.
If an exception has occured the message will be stored here.
Get the unit the task wraps.
Get the runner instance and/or class.
The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.
Copyright 2015 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Test::Stream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Stream
CPAN shell
perl -MCPAN -e shell install Test::Stream
For more information on module installation, please visit the detailed CPAN module installation guide.