GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::STREAM::WORKFLOW::TASK (3)

.ds Aq ’

NAME

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

CONTENTS

DEPRECATED

<B>This distribution is deprecatedB> in favor of Test2, Test2::Suite, and Test2::Workflow.

See Test::Stream::Manual::ToTest2 for a conversion guide.

EXPERIMENTAL CODE WARNING

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.

DESCRIPTION

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

SYNOPSIS

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.



    $task->();



Or direcectly:



    $task->iterate();



METHODS

$task->run() Run the task, this should only every be done by a runner.
$task->iterate() Sometimes tasks are recursive. This method is how they resume running in a recursive structure.
$task->reset() Reset the task. This is rarely needed.
$ar = $task->args() Get the args that will be passed to the primary actions.
$bool = $task->finished() Check if the task has finished running.
$bool = $task->no_final() True if the task is not required to generate events.
$bool = $task->should_run() True if there is still work to be done.
$bool = $task->subtest() True if the task should produce a subtest.
$int = $task->events() Number of events produced by the primary actions.
$int = $task->failed() Number of failures produced inside the primary actions.
$int = $task->pending() How many pending iterations remain.
$int = $task->stage() What stage the task is in.
$msg = $task->exception() If an exception has occured the message will be stored here.
$unit = $task->unit() Get the unit the task wraps.
$runner = $task->runner() Get the runner instance and/or class.

SOURCE

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

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

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://dev.perl.org/licenses/

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::STREAM::WORKFLOW::TASK (3) 2016-02-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.