mocks

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLReplacerFactoryMock

type URLReplacerFactoryMock struct {
	MakeMock mURLReplacerFactoryMockMake
	// contains filtered or unexported fields
}

URLReplacerFactoryMock implements proxy.URLReplacerFactory

func NewURLReplacerFactoryMock

func NewURLReplacerFactoryMock(t minimock.Tester) *URLReplacerFactoryMock

NewURLReplacerFactoryMock returns a mock for proxy.URLReplacerFactory

func (*URLReplacerFactoryMock) Make

func (mmMake *URLReplacerFactoryMock) Make(requestURL *url.URL) (rp1 *urlreplacer.Replacer, rp2 *urlreplacer.Replacer, err error)

Make implements proxy.URLReplacerFactory

func (*URLReplacerFactoryMock) MakeAfterCounter

func (mmMake *URLReplacerFactoryMock) MakeAfterCounter() uint64

MakeAfterCounter returns a count of finished URLReplacerFactoryMock.Make invocations

func (*URLReplacerFactoryMock) MakeBeforeCounter

func (mmMake *URLReplacerFactoryMock) MakeBeforeCounter() uint64

MakeBeforeCounter returns a count of URLReplacerFactoryMock.Make invocations

func (*URLReplacerFactoryMock) MinimockFinish

func (m *URLReplacerFactoryMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*URLReplacerFactoryMock) MinimockMakeDone

func (m *URLReplacerFactoryMock) MinimockMakeDone() bool

MinimockMakeDone returns true if the count of the Make invocations corresponds the number of defined expectations

func (*URLReplacerFactoryMock) MinimockMakeInspect

func (m *URLReplacerFactoryMock) MinimockMakeInspect()

MinimockMakeInspect logs each unmet expectation

func (*URLReplacerFactoryMock) MinimockWait

func (m *URLReplacerFactoryMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type URLReplacerFactoryMockMakeExpectation

type URLReplacerFactoryMockMakeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

URLReplacerFactoryMockMakeExpectation specifies expectation struct of the URLReplacerFactory.Make

func (*URLReplacerFactoryMockMakeExpectation) Then

Then sets up URLReplacerFactory.Make return parameters for the expectation previously defined by the When method

type URLReplacerFactoryMockMakeParams

type URLReplacerFactoryMockMakeParams struct {
	// contains filtered or unexported fields
}

URLReplacerFactoryMockMakeParams contains parameters of the URLReplacerFactory.Make

type URLReplacerFactoryMockMakeResults

type URLReplacerFactoryMockMakeResults struct {
	// contains filtered or unexported fields
}

URLReplacerFactoryMockMakeResults contains results of the URLReplacerFactory.Make

Jump to

Keyboard shortcuts

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