Test::Stream::Workflow::Unit - Representation of a workflow 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 package is a single unit of work to be done in a workflow. The unit may contain a codeblock, or many child units.
Check if the unit contains (or is) a unit with the given specification. The specification may be a line number, a filename + line number, or a unit name. This will return true if either the unit, or one of the child units, matches.
These add $other_unit as a child unit. The child is added to the group specified in the method name.
$other_unit
Add a primary unit child. Note: The primary unit is either an arrayref of other units, or a single coderef. In cases where the primary is a coderef, this will fail badly.
Add a post-build callback.
Run (and remove) the post-build callbacks.
Generate an Test::Stream::Debug object for this unit.
Generate a context representing the scope of the unit. Note: this context is non-canonical.
Get the unit name.
Get the meta hashref, this contains things like 'todo' and 'skip'.
Get the unit type.
True if the codeblock for this unit is a wrap (around_all, around_each, etc).
General purpose stash for use in plugins and extensions.
Package for the unit.
Filename for the unit
Starting line for the unit.
Ending line number for the unit. Note: This can be set to an integer, or to the string 'EOF'.
This will check all child unit bounds, if they fall outside the parents bounds then the parent will be adjusted.
Access to the arrayrefs for the specific child types.
Get the primary, which may be an arrayref of other units, or a single coderef.
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.