Documentation ¶
Overview ¶
Package planner provides mock for planner.
Index ¶
- Variables
- type Expectation
- func (_m *Expectation) BodyMatcher() *matcher.BodyMatcher
- func (_m *Expectation) Fulfilled()
- func (_m *Expectation) FulfilledTimes() uint
- func (_m *Expectation) HeaderMatcher() matcher.HeaderMatcher
- func (_m *Expectation) Method() string
- func (_m *Expectation) RemainTimes() uint
- func (_m *Expectation) URIMatcher() v2.Matcher
- type ExpectationMocker
- type Mocker
- type Planner
Constants ¶
This section is empty.
Variables ¶
var NoMockExpectation = MockExpectation()
NoMockExpectation is no mock Expectation.
var NoMockPlanner = Mock()
NoMockPlanner is no mock Planner.
Functions ¶
This section is empty.
Types ¶
type Expectation ¶ added in v0.10.0
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 Planner ¶
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) Remain ¶
func (_m *Planner) Remain() []planner.Expectation
Remain provides a mock function with given fields: