package TB2::Event::SetPlan; use TB2::Types; use TB2::Mouse; with 'TB2::Event'; our $VERSION = '1.005000_002'; $VERSION = eval $VERSION; ## no critic (BuiltinFunctions::ProhibitStringyEval) =head1 NAME TB2::Event::SetPlan - Set the plan for the current test =head1 DESCRIPTION This is an Event indicating that the test plan for the current test has been set. It B come between a C and an C Event. There B be only one plan per test. An exception is that a B can be followed by a more restrictive plan. =head1 METHODS =head2 Attributes =head3 asserts_expected The total number of asserts expected to be in this test. Must be a positive integer or 0. Defaults to 0. =cut has asserts_expected => is => 'rw', isa => 'TB2::Positive_Int', default => 0, ; =head3 no_plan If true, there is explicitly no plan for this test. Any positive number of asserts is fine. Defaults to false. =cut has no_plan => is => 'rw', isa => 'Bool', default => 0 ; =head3 skip If true, it indicates that the rest of the asserts in the test will not be executed. Usually because they would not make sense in the current environment (Unix tests on Windows, for example). No results should follow in this test. Defaults to false. =cut has skip => is => 'rw', isa => 'Bool', default => 0 ; =head3 skip_reason The reason the test has been skipped. Defaults to empty string. =cut has skip_reason => is => 'rw', isa => 'Str', default => '' ; =head3 plan A hash ref containing any further information about the plan. Defaults to an empty hash ref. =cut has plan => is => 'rw', isa => 'HashRef', lazy => 1, default => sub { {} } ; =head3 build_event_type The event type is C. =cut sub build_event_type { "set_plan" } =head1 SEE ALSO L =cut 1;