VERSION

Version 0.34

new

Construct a new Planner instance.

my $planner = App::Test::Generator::Planner->new(
    schemas => \%schemas,
    package => 'My::Module',
);

Arguments

  • schemas - hashref of method name to schema hashref. Required.

  • package - the Perl package name of the module under test. Required.

Returns

A blessed hashref.

plan_all

Generate a test plan for every method in the schema.

my $plans = $planner->plan_all();

Arguments

None beyond $self.

Returns

A hashref mapping method name to a plan hashref. Each plan hashref contains boolean flags such as getter_test, getset_test, object_injection_test, and boolean_test indicating which test types should be emitted for that method.

AUTHOR

Nigel Horne