1 package Test2::Event::Subtest;
5 our $VERSION = '1.302045';
8 BEGIN { require Test2::Event::Ok; our @ISA = qw(Test2::Event::Ok) }
9 use Test2::Util::HashBase qw{subevents buffered subtest_id};
14 $self->{+SUBEVENTS} ||= [];
20 my $name = $self->{+NAME} || "Nameless Subtest";
22 my $todo = $self->{+TODO};
24 $name .= " (TODO: $todo)";
26 elsif (defined $todo) {
43 Test2::Event::Subtest - Event for subtest types
47 This class represents a subtest. This class is a subclass of
52 This class inherits from L<Test2::Event::Ok>.
56 =item $arrayref = $e->subevents
58 Returns the arrayref containing all the events from the subtest
60 =item $bool = $e->buffered
62 True if the subtest is buffered, that is all subevents render at once. If this
63 is false it means all subevents render as they are produced.
69 The source code repository for Test2 can be found at
70 F<http://github.com/Test-More/test-more/>.
76 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
84 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
90 Copyright 2016 Chad Granum E<lt>exodist@cpan.orgE<gt>.
92 This program is free software; you can redistribute it and/or
93 modify it under the same terms as Perl itself.
95 See F<http://dev.perl.org/licenses/>