planner

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package planner provides mock for planner.

Index

Constants

This section is empty.

Variables

View Source
var NoMockExpectation = MockExpectation()

NoMockExpectation is no mock Expectation.

View Source
var NoMockPlanner = Mock()

NoMockPlanner is no mock Planner.

Functions

This section is empty.

Types

type Expectation added in v0.10.0

type Expectation struct {
	mock.Mock
}

Expectation is an autogenerated mock type for the Expectation type

func NewExpectation added in v0.10.0

func NewExpectation(t mockConstructorTestingTNewExpectation) *Expectation

NewExpectation creates a new instance of Expectation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Expectation) BodyMatcher added in v0.10.0

func (_m *Expectation) BodyMatcher() *matcher.BodyMatcher

BodyMatcher provides a mock function with given fields:

func (*Expectation) Fulfilled added in v0.10.0

func (_m *Expectation) Fulfilled()

Fulfilled provides a mock function with given fields:

func (*Expectation) FulfilledTimes added in v0.10.0

func (_m *Expectation) FulfilledTimes() uint

FulfilledTimes provides a mock function with given fields:

func (*Expectation) HeaderMatcher added in v0.10.0

func (_m *Expectation) HeaderMatcher() matcher.HeaderMatcher

HeaderMatcher provides a mock function with given fields:

func (*Expectation) Method added in v0.10.0

func (_m *Expectation) Method() string

Method provides a mock function with given fields:

func (*Expectation) RemainTimes added in v0.10.0

func (_m *Expectation) RemainTimes() uint

RemainTimes provides a mock function with given fields:

func (*Expectation) URIMatcher added in v0.10.0

func (_m *Expectation) URIMatcher() v2.Matcher

URIMatcher provides a mock function with given fields:

type ExpectationMocker added in v0.10.0

type ExpectationMocker func(tb testing.TB) *Expectation

ExpectationMocker is Expectation mocker.

func MockExpectation added in v0.10.0

func MockExpectation(mocks ...func(e *Expectation)) ExpectationMocker

MockExpectation creates Expectation mock with cleanup to ensure all the expectations are met.

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 {
	mock.Mock
}

Planner is an autogenerated mock type for the Planner type

func NewPlanner added in v0.10.0

func NewPlanner(t mockConstructorTestingTNewPlanner) *Planner

NewPlanner creates a new instance of Planner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Planner) Expect

func (_m *Planner) Expect(e planner.Expectation)

Expect provides a mock function with given fields: e

func (*Planner) IsEmpty

func (_m *Planner) IsEmpty() bool

IsEmpty provides a mock function with given fields:

func (*Planner) Plan

func (_m *Planner) Plan(req *http.Request) (planner.Expectation, error)

Plan provides a mock function with given fields: req

func (*Planner) Remain

func (_m *Planner) Remain() []planner.Expectation

Remain provides a mock function with given fields:

func (*Planner) Reset

func (_m *Planner) Reset()

Reset provides a mock function with given fields:

Jump to

Keyboard shortcuts

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