NAME
Test::Builder::Result::Child - Child result type
DESCRIPTION
Sent when a child Builder is spawned, such as a subtest.
METHODS
See Test::Builder::Result which is the base class for this module.
CONSTRUCTORS
ATTRIBUTES
- $r->action
-
Either 'push' or 'pop'. When a child is created a push is sent, when a child exits a pop is sent.
SIMPLE READ/WRITE ACCESSORS
- $r->name
-
Name of the child
- $r->is_subtest
-
True if the child was spawned for a subtest.
- $r->trace
-
Get the test trace info, including where to report errors.
- $r->pid
-
PID in which the result was created.
- $r->depth
-
Builder depth of the result (0 for normal, 1 for subtest, 2 for nested, etc).
- $r->in_todo
-
True if the result was generated inside a todo.
- $r->source
-
Builder that created the result, usually $0, but the name of a subtest when inside a subtest.
- $r->constructed
-
Package, File, and Line in which the result was built.
INFORMATION
- $r->to_tap
-
no-op, return nothing.
- $r->type
-
Type of result. Usually this is the lowercased name from the end of the package. Test::Builder::Result::Ok = 'ok'.
- $r->indent
-
Returns the indentation that should be used to display the result (' ' x depth).
AUTHORS
SOURCE
The source code repository for Test::More can be found at http://github.com/Test-More/test-more/.
COPYRIGHT
Copyright 2014 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