Test::StructuredObject::CodeStub - The base class of all executable tests.
version 0.01000010
This class is basically a functor. At least, all derived packages are. This top level class has no implicit code storage part, and this module really should be reimplemented as a role. But laziness.
functor
This top level provides few basic utilities to inheriting packages, largely dcode , run and to_s.
dcode
run
to_s
Return the source-code of this objects coderef using B::Deparse. Will not work on the base class as it needs ->code to work.
coderef
->code
Execute this objects coderef inside an eval { } block.
eval { }
In the event of a failure emanating from the eval'd code, that error is passed to carp
eval
Return value of the coderef is passed to the caller.
Will not work on the base class as it needs ->code to work.
Pretty-print this object in a serialisation-like format showing the source for the coderef.
Will not work on the base class as it needs ->dcode and thus ->code to work.
->dcode
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2013 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
L<> starts or ends with whitespace
To install Test::StructuredObject, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::StructuredObject
CPAN shell
perl -MCPAN -e shell install Test::StructuredObject
For more information on module installation, please visit the detailed CPAN module installation guide.