Contains planned calls to mocked functions.
my $mock_call_plan = Test::CallFlow::Plan->new( %properties );
$mock_call_plan->add_call( Test::CallFlow::Call->new( 'subname', @args ) );
Adds a call into this plan.
$mock_call_plan->call( 'subname', @args );
Heart of plan execution. Searches for a matching call and returns the result.
This should be shortened for ease of further development. Then again, it seems to work.
$mock_call_plan->failed_call( $called, $calls, \@errors );
call() to report errors. Croaks with a list of tried and failed call proposals.
Returns an array of remaining unsatisfied calls.
Whole plan can be seen as successfully executed once this returns an empty array.
Return to planning state, preserving all previously made plans and discarding any results of running.
Returns the list of calls in this plan.