planner

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package planner provides mock for planner.

Index

Constants

This section is empty.

Variables

View Source
var NoMockPlanner = Mock()

NoMockPlanner is no mock Planner.

Functions

This section is empty.

Types

type Mocker

type Mocker func(tb testing.TB) *Planner

Mocker is Planner mocker.

func Mock

func Mock(mocks ...func(p *Planner)) Mocker

Mock creates Planner mock with cleanup to ensure all the expectations are met.

type Planner

type Planner struct {
	tMock.Mock
}

Planner is a planner.Planner.

func (*Planner) Expect

func (p *Planner) Expect(expect request.Request)

Expect satisfies planner.Planner interface.

func (*Planner) IsEmpty

func (p *Planner) IsEmpty() bool

IsEmpty satisfies planner.Planner interface.

func (*Planner) Plan

func (p *Planner) Plan(ctx context.Context, req service.Method, in interface{}) (request.Request, error)

Plan satisfies planner.Planner interface.

func (*Planner) Remain

func (p *Planner) Remain() []request.Request

Remain satisfies planner.Planner interface.

func (*Planner) Reset

func (p *Planner) Reset()

Reset satisfies planner.Planner interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL