mocks

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailNowHandlerMock added in v0.5.0

func FailNowHandlerMock(t *testing.T) contracts.Handler

Types

type CloserMock added in v0.1.0

type CloserMock struct {
	CloseMock mCloserMockClose
	// contains filtered or unexported fields
}

CloserMock implements mm_io.Closer

func NewCloserMock added in v0.1.0

func NewCloserMock(t minimock.Tester) *CloserMock

NewCloserMock returns a mock for mm_io.Closer

func (*CloserMock) Close added in v0.1.0

func (mmClose *CloserMock) Close() (err error)

Close implements mm_io.Closer

func (*CloserMock) CloseAfterCounter added in v0.1.0

func (mmClose *CloserMock) CloseAfterCounter() uint64

CloseAfterCounter returns a count of finished CloserMock.Close invocations

func (*CloserMock) CloseBeforeCounter added in v0.1.0

func (mmClose *CloserMock) CloseBeforeCounter() uint64

CloseBeforeCounter returns a count of CloserMock.Close invocations

func (*CloserMock) MinimockCloseDone added in v0.1.0

func (m *CloserMock) MinimockCloseDone() bool

MinimockCloseDone returns true if the count of the Close invocations corresponds the number of defined expectations

func (*CloserMock) MinimockCloseInspect added in v0.1.0

func (m *CloserMock) MinimockCloseInspect()

MinimockCloseInspect logs each unmet expectation

func (*CloserMock) MinimockFinish added in v0.1.0

func (m *CloserMock) MinimockFinish()

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

func (*CloserMock) MinimockWait added in v0.1.0

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

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

type CloserMockCloseExpectation added in v0.1.0

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

CloserMockCloseExpectation specifies expectation struct of the Closer.Close

type CloserMockCloseResults added in v0.1.0

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

CloserMockCloseResults contains results of the Closer.Close

type HTTPClientMock added in v0.1.0

type HTTPClientMock struct {
	DoMock mHTTPClientMockDo
	// contains filtered or unexported fields
}

HTTPClientMock implements mm_contracts.HTTPClient

func NewHTTPClientMock added in v0.1.0

func NewHTTPClientMock(t minimock.Tester) *HTTPClientMock

NewHTTPClientMock returns a mock for mm_contracts.HTTPClient

func (*HTTPClientMock) Do added in v0.1.0

func (mmDo *HTTPClientMock) Do(req *http.Request) (rp1 *http.Response, err error)

Do implements mm_contracts.HTTPClient

func (*HTTPClientMock) DoAfterCounter added in v0.1.0

func (mmDo *HTTPClientMock) DoAfterCounter() uint64

DoAfterCounter returns a count of finished HTTPClientMock.Do invocations

func (*HTTPClientMock) DoBeforeCounter added in v0.1.0

func (mmDo *HTTPClientMock) DoBeforeCounter() uint64

DoBeforeCounter returns a count of HTTPClientMock.Do invocations

func (*HTTPClientMock) MinimockDoDone added in v0.1.0

func (m *HTTPClientMock) MinimockDoDone() bool

MinimockDoDone returns true if the count of the Do invocations corresponds the number of defined expectations

func (*HTTPClientMock) MinimockDoInspect added in v0.1.0

func (m *HTTPClientMock) MinimockDoInspect()

MinimockDoInspect logs each unmet expectation

func (*HTTPClientMock) MinimockFinish added in v0.1.0

func (m *HTTPClientMock) MinimockFinish()

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

func (*HTTPClientMock) MinimockWait added in v0.1.0

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

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

type HTTPClientMockDoExpectation added in v0.1.0

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

HTTPClientMockDoExpectation specifies expectation struct of the HTTPClient.Do

func (*HTTPClientMockDoExpectation) Then added in v0.1.0

Then sets up HTTPClient.Do return parameters for the expectation previously defined by the When method

type HTTPClientMockDoExpectationOrigins added in v0.6.0

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

HTTPClientMockDoOrigins contains origins of expectations of the HTTPClient.Do

type HTTPClientMockDoParamPtrs added in v0.3.0

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

HTTPClientMockDoParamPtrs contains pointers to parameters of the HTTPClient.Do

type HTTPClientMockDoParams added in v0.1.0

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

HTTPClientMockDoParams contains parameters of the HTTPClient.Do

type HTTPClientMockDoResults added in v0.1.0

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

HTTPClientMockDoResults contains results of the HTTPClient.Do

type HandlerMock added in v0.5.0

type HandlerMock struct {
	ServeHTTPMock mHandlerMockServeHTTP
	// contains filtered or unexported fields
}

HandlerMock implements mm_contracts.Handler

func NewHandlerMock added in v0.5.0

func NewHandlerMock(t minimock.Tester) *HandlerMock

NewHandlerMock returns a mock for mm_contracts.Handler

func (*HandlerMock) MinimockFinish added in v0.5.0

func (m *HandlerMock) MinimockFinish()

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

func (*HandlerMock) MinimockServeHTTPDone added in v0.5.0

func (m *HandlerMock) MinimockServeHTTPDone() bool

MinimockServeHTTPDone returns true if the count of the ServeHTTP invocations corresponds the number of defined expectations

func (*HandlerMock) MinimockServeHTTPInspect added in v0.5.0

func (m *HandlerMock) MinimockServeHTTPInspect()

MinimockServeHTTPInspect logs each unmet expectation

func (*HandlerMock) MinimockWait added in v0.5.0

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

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

func (*HandlerMock) ServeHTTP added in v0.5.0

func (mmServeHTTP *HandlerMock) ServeHTTP(writer mm_contracts.ResponseWriter, request *mm_contracts.Request)

ServeHTTP implements mm_contracts.Handler

func (*HandlerMock) ServeHTTPAfterCounter added in v0.5.0

func (mmServeHTTP *HandlerMock) ServeHTTPAfterCounter() uint64

ServeHTTPAfterCounter returns a count of finished HandlerMock.ServeHTTP invocations

func (*HandlerMock) ServeHTTPBeforeCounter added in v0.5.0

func (mmServeHTTP *HandlerMock) ServeHTTPBeforeCounter() uint64

ServeHTTPBeforeCounter returns a count of HandlerMock.ServeHTTP invocations

type HandlerMockServeHTTPExpectation added in v0.5.0

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

HandlerMockServeHTTPExpectation specifies expectation struct of the Handler.ServeHTTP

func (*HandlerMockServeHTTPExpectation) Then added in v0.6.0

type HandlerMockServeHTTPExpectationOrigins added in v0.6.0

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

HandlerMockServeHTTPOrigins contains origins of expectations of the Handler.ServeHTTP

type HandlerMockServeHTTPParamPtrs added in v0.5.0

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

HandlerMockServeHTTPParamPtrs contains pointers to parameters of the Handler.ServeHTTP

type HandlerMockServeHTTPParams added in v0.5.0

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

HandlerMockServeHTTPParams contains parameters of the Handler.ServeHTTP

type LoggerMock added in v0.0.7

type LoggerMock struct {
	DebugMock mLoggerMockDebug

	DebugfMock mLoggerMockDebugf

	ErrorMock mLoggerMockError

	ErrorfMock mLoggerMockErrorf

	InfoMock mLoggerMockInfo

	InfofMock mLoggerMockInfof

	PrintMock mLoggerMockPrint

	PrintfMock mLoggerMockPrintf

	WarnMock mLoggerMockWarn

	WarnfMock mLoggerMockWarnf
	// contains filtered or unexported fields
}

LoggerMock implements mm_contracts.Logger

func NewLoggerMock added in v0.0.7

func NewLoggerMock(t minimock.Tester) *LoggerMock

NewLoggerMock returns a mock for mm_contracts.Logger

func (*LoggerMock) Debug added in v0.0.7

func (mmDebug *LoggerMock) Debug(msg any, keyvals ...any)

Debug implements mm_contracts.Logger

func (*LoggerMock) DebugAfterCounter added in v0.0.7

func (mmDebug *LoggerMock) DebugAfterCounter() uint64

DebugAfterCounter returns a count of finished LoggerMock.Debug invocations

func (*LoggerMock) DebugBeforeCounter added in v0.0.7

func (mmDebug *LoggerMock) DebugBeforeCounter() uint64

DebugBeforeCounter returns a count of LoggerMock.Debug invocations

func (*LoggerMock) Debugf added in v0.0.7

func (mmDebugf *LoggerMock) Debugf(template string, a ...any)

Debugf implements mm_contracts.Logger

func (*LoggerMock) DebugfAfterCounter added in v0.0.7

func (mmDebugf *LoggerMock) DebugfAfterCounter() uint64

DebugfAfterCounter returns a count of finished LoggerMock.Debugf invocations

func (*LoggerMock) DebugfBeforeCounter added in v0.0.7

func (mmDebugf *LoggerMock) DebugfBeforeCounter() uint64

DebugfBeforeCounter returns a count of LoggerMock.Debugf invocations

func (*LoggerMock) Error added in v0.0.7

func (mmError *LoggerMock) Error(msg any, keyvals ...any)

Error implements mm_contracts.Logger

func (*LoggerMock) ErrorAfterCounter added in v0.0.7

func (mmError *LoggerMock) ErrorAfterCounter() uint64

ErrorAfterCounter returns a count of finished LoggerMock.Error invocations

func (*LoggerMock) ErrorBeforeCounter added in v0.0.7

func (mmError *LoggerMock) ErrorBeforeCounter() uint64

ErrorBeforeCounter returns a count of LoggerMock.Error invocations

func (*LoggerMock) Errorf added in v0.0.7

func (mmErrorf *LoggerMock) Errorf(template string, a ...any)

Errorf implements mm_contracts.Logger

func (*LoggerMock) ErrorfAfterCounter added in v0.0.7

func (mmErrorf *LoggerMock) ErrorfAfterCounter() uint64

ErrorfAfterCounter returns a count of finished LoggerMock.Errorf invocations

func (*LoggerMock) ErrorfBeforeCounter added in v0.0.7

func (mmErrorf *LoggerMock) ErrorfBeforeCounter() uint64

ErrorfBeforeCounter returns a count of LoggerMock.Errorf invocations

func (*LoggerMock) Info added in v0.0.7

func (mmInfo *LoggerMock) Info(msg any, keyvals ...any)

Info implements mm_contracts.Logger

func (*LoggerMock) InfoAfterCounter added in v0.0.7

func (mmInfo *LoggerMock) InfoAfterCounter() uint64

InfoAfterCounter returns a count of finished LoggerMock.Info invocations

func (*LoggerMock) InfoBeforeCounter added in v0.0.7

func (mmInfo *LoggerMock) InfoBeforeCounter() uint64

InfoBeforeCounter returns a count of LoggerMock.Info invocations

func (*LoggerMock) Infof added in v0.0.7

func (mmInfof *LoggerMock) Infof(template string, a ...any)

Infof implements mm_contracts.Logger

func (*LoggerMock) InfofAfterCounter added in v0.0.7

func (mmInfof *LoggerMock) InfofAfterCounter() uint64

InfofAfterCounter returns a count of finished LoggerMock.Infof invocations

func (*LoggerMock) InfofBeforeCounter added in v0.0.7

func (mmInfof *LoggerMock) InfofBeforeCounter() uint64

InfofBeforeCounter returns a count of LoggerMock.Infof invocations

func (*LoggerMock) MinimockDebugDone added in v0.0.7

func (m *LoggerMock) MinimockDebugDone() bool

MinimockDebugDone returns true if the count of the Debug invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockDebugInspect added in v0.0.7

func (m *LoggerMock) MinimockDebugInspect()

MinimockDebugInspect logs each unmet expectation

func (*LoggerMock) MinimockDebugfDone added in v0.0.7

func (m *LoggerMock) MinimockDebugfDone() bool

MinimockDebugfDone returns true if the count of the Debugf invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockDebugfInspect added in v0.0.7

func (m *LoggerMock) MinimockDebugfInspect()

MinimockDebugfInspect logs each unmet expectation

func (*LoggerMock) MinimockErrorDone added in v0.0.7

func (m *LoggerMock) MinimockErrorDone() bool

MinimockErrorDone returns true if the count of the Error invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockErrorInspect added in v0.0.7

func (m *LoggerMock) MinimockErrorInspect()

MinimockErrorInspect logs each unmet expectation

func (*LoggerMock) MinimockErrorfDone added in v0.0.7

func (m *LoggerMock) MinimockErrorfDone() bool

MinimockErrorfDone returns true if the count of the Errorf invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockErrorfInspect added in v0.0.7

func (m *LoggerMock) MinimockErrorfInspect()

MinimockErrorfInspect logs each unmet expectation

func (*LoggerMock) MinimockFinish added in v0.0.7

func (m *LoggerMock) MinimockFinish()

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

func (*LoggerMock) MinimockInfoDone added in v0.0.7

func (m *LoggerMock) MinimockInfoDone() bool

MinimockInfoDone returns true if the count of the Info invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockInfoInspect added in v0.0.7

func (m *LoggerMock) MinimockInfoInspect()

MinimockInfoInspect logs each unmet expectation

func (*LoggerMock) MinimockInfofDone added in v0.0.7

func (m *LoggerMock) MinimockInfofDone() bool

MinimockInfofDone returns true if the count of the Infof invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockInfofInspect added in v0.0.7

func (m *LoggerMock) MinimockInfofInspect()

MinimockInfofInspect logs each unmet expectation

func (*LoggerMock) MinimockPrintDone added in v0.3.0

func (m *LoggerMock) MinimockPrintDone() bool

MinimockPrintDone returns true if the count of the Print invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockPrintInspect added in v0.3.0

func (m *LoggerMock) MinimockPrintInspect()

MinimockPrintInspect logs each unmet expectation

func (*LoggerMock) MinimockPrintfDone added in v0.3.0

func (m *LoggerMock) MinimockPrintfDone() bool

MinimockPrintfDone returns true if the count of the Printf invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockPrintfInspect added in v0.3.0

func (m *LoggerMock) MinimockPrintfInspect()

MinimockPrintfInspect logs each unmet expectation

func (*LoggerMock) MinimockWait added in v0.0.7

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

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

func (*LoggerMock) MinimockWarnDone added in v0.3.0

func (m *LoggerMock) MinimockWarnDone() bool

MinimockWarnDone returns true if the count of the Warn invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockWarnInspect added in v0.3.0

func (m *LoggerMock) MinimockWarnInspect()

MinimockWarnInspect logs each unmet expectation

func (*LoggerMock) MinimockWarnfDone added in v0.3.0

func (m *LoggerMock) MinimockWarnfDone() bool

MinimockWarnfDone returns true if the count of the Warnf invocations corresponds the number of defined expectations

func (*LoggerMock) MinimockWarnfInspect added in v0.3.0

func (m *LoggerMock) MinimockWarnfInspect()

MinimockWarnfInspect logs each unmet expectation

func (*LoggerMock) Print added in v0.3.0

func (mmPrint *LoggerMock) Print(msg any, keyvals ...any)

Print implements mm_contracts.Logger

func (*LoggerMock) PrintAfterCounter added in v0.3.0

func (mmPrint *LoggerMock) PrintAfterCounter() uint64

PrintAfterCounter returns a count of finished LoggerMock.Print invocations

func (*LoggerMock) PrintBeforeCounter added in v0.3.0

func (mmPrint *LoggerMock) PrintBeforeCounter() uint64

PrintBeforeCounter returns a count of LoggerMock.Print invocations

func (*LoggerMock) Printf added in v0.3.0

func (mmPrintf *LoggerMock) Printf(format string, args ...any)

Printf implements mm_contracts.Logger

func (*LoggerMock) PrintfAfterCounter added in v0.3.0

func (mmPrintf *LoggerMock) PrintfAfterCounter() uint64

PrintfAfterCounter returns a count of finished LoggerMock.Printf invocations

func (*LoggerMock) PrintfBeforeCounter added in v0.3.0

func (mmPrintf *LoggerMock) PrintfBeforeCounter() uint64

PrintfBeforeCounter returns a count of LoggerMock.Printf invocations

func (*LoggerMock) Warn added in v0.3.0

func (mmWarn *LoggerMock) Warn(msg any, keyvals ...any)

Warn implements mm_contracts.Logger

func (*LoggerMock) WarnAfterCounter added in v0.3.0

func (mmWarn *LoggerMock) WarnAfterCounter() uint64

WarnAfterCounter returns a count of finished LoggerMock.Warn invocations

func (*LoggerMock) WarnBeforeCounter added in v0.3.0

func (mmWarn *LoggerMock) WarnBeforeCounter() uint64

WarnBeforeCounter returns a count of LoggerMock.Warn invocations

func (*LoggerMock) Warnf added in v0.3.0

func (mmWarnf *LoggerMock) Warnf(template string, a ...any)

Warnf implements mm_contracts.Logger

func (*LoggerMock) WarnfAfterCounter added in v0.3.0

func (mmWarnf *LoggerMock) WarnfAfterCounter() uint64

WarnfAfterCounter returns a count of finished LoggerMock.Warnf invocations

func (*LoggerMock) WarnfBeforeCounter added in v0.3.0

func (mmWarnf *LoggerMock) WarnfBeforeCounter() uint64

WarnfBeforeCounter returns a count of LoggerMock.Warnf invocations

type LoggerMockDebugExpectation added in v0.0.7

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

LoggerMockDebugExpectation specifies expectation struct of the Logger.Debug

func (*LoggerMockDebugExpectation) Then added in v0.6.0

type LoggerMockDebugExpectationOrigins added in v0.6.0

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

LoggerMockDebugOrigins contains origins of expectations of the Logger.Debug

type LoggerMockDebugParamPtrs added in v0.3.0

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

LoggerMockDebugParamPtrs contains pointers to parameters of the Logger.Debug

type LoggerMockDebugParams added in v0.0.7

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

LoggerMockDebugParams contains parameters of the Logger.Debug

type LoggerMockDebugfExpectation added in v0.0.7

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

LoggerMockDebugfExpectation specifies expectation struct of the Logger.Debugf

func (*LoggerMockDebugfExpectation) Then added in v0.6.0

type LoggerMockDebugfExpectationOrigins added in v0.6.0

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

LoggerMockDebugfOrigins contains origins of expectations of the Logger.Debugf

type LoggerMockDebugfParamPtrs added in v0.3.0

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

LoggerMockDebugfParamPtrs contains pointers to parameters of the Logger.Debugf

type LoggerMockDebugfParams added in v0.0.7

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

LoggerMockDebugfParams contains parameters of the Logger.Debugf

type LoggerMockErrorExpectation added in v0.0.7

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

LoggerMockErrorExpectation specifies expectation struct of the Logger.Error

func (*LoggerMockErrorExpectation) Then added in v0.6.0

type LoggerMockErrorExpectationOrigins added in v0.6.0

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

LoggerMockErrorOrigins contains origins of expectations of the Logger.Error

type LoggerMockErrorParamPtrs added in v0.3.0

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

LoggerMockErrorParamPtrs contains pointers to parameters of the Logger.Error

type LoggerMockErrorParams added in v0.0.7

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

LoggerMockErrorParams contains parameters of the Logger.Error

type LoggerMockErrorfExpectation added in v0.0.7

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

LoggerMockErrorfExpectation specifies expectation struct of the Logger.Errorf

func (*LoggerMockErrorfExpectation) Then added in v0.6.0

type LoggerMockErrorfExpectationOrigins added in v0.6.0

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

LoggerMockErrorfOrigins contains origins of expectations of the Logger.Errorf

type LoggerMockErrorfParamPtrs added in v0.3.0

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

LoggerMockErrorfParamPtrs contains pointers to parameters of the Logger.Errorf

type LoggerMockErrorfParams added in v0.0.7

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

LoggerMockErrorfParams contains parameters of the Logger.Errorf

type LoggerMockInfoExpectation added in v0.0.7

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

LoggerMockInfoExpectation specifies expectation struct of the Logger.Info

func (*LoggerMockInfoExpectation) Then added in v0.6.0

type LoggerMockInfoExpectationOrigins added in v0.6.0

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

LoggerMockInfoOrigins contains origins of expectations of the Logger.Info

type LoggerMockInfoParamPtrs added in v0.3.0

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

LoggerMockInfoParamPtrs contains pointers to parameters of the Logger.Info

type LoggerMockInfoParams added in v0.0.7

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

LoggerMockInfoParams contains parameters of the Logger.Info

type LoggerMockInfofExpectation added in v0.0.7

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

LoggerMockInfofExpectation specifies expectation struct of the Logger.Infof

func (*LoggerMockInfofExpectation) Then added in v0.6.0

type LoggerMockInfofExpectationOrigins added in v0.6.0

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

LoggerMockInfofOrigins contains origins of expectations of the Logger.Infof

type LoggerMockInfofParamPtrs added in v0.3.0

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

LoggerMockInfofParamPtrs contains pointers to parameters of the Logger.Infof

type LoggerMockInfofParams added in v0.0.7

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

LoggerMockInfofParams contains parameters of the Logger.Infof

type LoggerMockPrintExpectation added in v0.3.0

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

LoggerMockPrintExpectation specifies expectation struct of the Logger.Print

func (*LoggerMockPrintExpectation) Then added in v0.6.0

type LoggerMockPrintExpectationOrigins added in v0.6.0

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

LoggerMockPrintOrigins contains origins of expectations of the Logger.Print

type LoggerMockPrintParamPtrs added in v0.3.0

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

LoggerMockPrintParamPtrs contains pointers to parameters of the Logger.Print

type LoggerMockPrintParams added in v0.3.0

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

LoggerMockPrintParams contains parameters of the Logger.Print

type LoggerMockPrintfExpectation added in v0.3.0

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

LoggerMockPrintfExpectation specifies expectation struct of the Logger.Printf

func (*LoggerMockPrintfExpectation) Then added in v0.6.0

type LoggerMockPrintfExpectationOrigins added in v0.6.0

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

LoggerMockPrintfOrigins contains origins of expectations of the Logger.Printf

type LoggerMockPrintfParamPtrs added in v0.3.0

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

LoggerMockPrintfParamPtrs contains pointers to parameters of the Logger.Printf

type LoggerMockPrintfParams added in v0.3.0

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

LoggerMockPrintfParams contains parameters of the Logger.Printf

type LoggerMockWarnExpectation added in v0.3.0

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

LoggerMockWarnExpectation specifies expectation struct of the Logger.Warn

func (*LoggerMockWarnExpectation) Then added in v0.6.0

type LoggerMockWarnExpectationOrigins added in v0.6.0

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

LoggerMockWarnOrigins contains origins of expectations of the Logger.Warn

type LoggerMockWarnParamPtrs added in v0.3.0

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

LoggerMockWarnParamPtrs contains pointers to parameters of the Logger.Warn

type LoggerMockWarnParams added in v0.3.0

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

LoggerMockWarnParams contains parameters of the Logger.Warn

type LoggerMockWarnfExpectation added in v0.3.0

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

LoggerMockWarnfExpectation specifies expectation struct of the Logger.Warnf

func (*LoggerMockWarnfExpectation) Then added in v0.6.0

type LoggerMockWarnfExpectationOrigins added in v0.6.0

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

LoggerMockWarnfOrigins contains origins of expectations of the Logger.Warnf

type LoggerMockWarnfParamPtrs added in v0.3.0

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

LoggerMockWarnfParamPtrs contains pointers to parameters of the Logger.Warnf

type LoggerMockWarnfParams added in v0.3.0

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

LoggerMockWarnfParams contains parameters of the Logger.Warnf

type ReplacerFactoryMock added in v0.2.0

type ReplacerFactoryMock struct {
	MakeMock mReplacerFactoryMockMake
	// contains filtered or unexported fields
}

ReplacerFactoryMock implements mm_urlreplacer.ReplacerFactory

func NewReplacerFactoryMock added in v0.2.0

func NewReplacerFactoryMock(t minimock.Tester) *ReplacerFactoryMock

NewReplacerFactoryMock returns a mock for mm_urlreplacer.ReplacerFactory

func (*ReplacerFactoryMock) Make added in v0.2.0

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

Make implements mm_urlreplacer.ReplacerFactory

func (*ReplacerFactoryMock) MakeAfterCounter added in v0.2.0

func (mmMake *ReplacerFactoryMock) MakeAfterCounter() uint64

MakeAfterCounter returns a count of finished ReplacerFactoryMock.Make invocations

func (*ReplacerFactoryMock) MakeBeforeCounter added in v0.2.0

func (mmMake *ReplacerFactoryMock) MakeBeforeCounter() uint64

MakeBeforeCounter returns a count of ReplacerFactoryMock.Make invocations

func (*ReplacerFactoryMock) MinimockFinish added in v0.2.0

func (m *ReplacerFactoryMock) MinimockFinish()

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

func (*ReplacerFactoryMock) MinimockMakeDone added in v0.2.0

func (m *ReplacerFactoryMock) MinimockMakeDone() bool

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

func (*ReplacerFactoryMock) MinimockMakeInspect added in v0.2.0

func (m *ReplacerFactoryMock) MinimockMakeInspect()

MinimockMakeInspect logs each unmet expectation

func (*ReplacerFactoryMock) MinimockWait added in v0.2.0

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

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

type ReplacerFactoryMockMakeExpectation added in v0.2.0

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

ReplacerFactoryMockMakeExpectation specifies expectation struct of the ReplacerFactory.Make

func (*ReplacerFactoryMockMakeExpectation) Then added in v0.2.0

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

type ReplacerFactoryMockMakeExpectationOrigins added in v0.6.0

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

ReplacerFactoryMockMakeOrigins contains origins of expectations of the ReplacerFactory.Make

type ReplacerFactoryMockMakeParamPtrs added in v0.3.0

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

ReplacerFactoryMockMakeParamPtrs contains pointers to parameters of the ReplacerFactory.Make

type ReplacerFactoryMockMakeParams added in v0.2.0

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

ReplacerFactoryMockMakeParams contains parameters of the ReplacerFactory.Make

type ReplacerFactoryMockMakeResults added in v0.2.0

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

ReplacerFactoryMockMakeResults contains results of the ReplacerFactory.Make

type WriterMock added in v0.1.0

type WriterMock struct {
	WriteMock mWriterMockWrite
	// contains filtered or unexported fields
}

WriterMock implements mm_io.Writer

func NewWriterMock added in v0.1.0

func NewWriterMock(t minimock.Tester) *WriterMock

NewWriterMock returns a mock for mm_io.Writer

func (*WriterMock) MinimockFinish added in v0.1.0

func (m *WriterMock) MinimockFinish()

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

func (*WriterMock) MinimockWait added in v0.1.0

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

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

func (*WriterMock) MinimockWriteDone added in v0.1.0

func (m *WriterMock) MinimockWriteDone() bool

MinimockWriteDone returns true if the count of the Write invocations corresponds the number of defined expectations

func (*WriterMock) MinimockWriteInspect added in v0.1.0

func (m *WriterMock) MinimockWriteInspect()

MinimockWriteInspect logs each unmet expectation

func (*WriterMock) Write added in v0.1.0

func (mmWrite *WriterMock) Write(p []byte) (n int, err error)

Write implements mm_io.Writer

func (*WriterMock) WriteAfterCounter added in v0.1.0

func (mmWrite *WriterMock) WriteAfterCounter() uint64

WriteAfterCounter returns a count of finished WriterMock.Write invocations

func (*WriterMock) WriteBeforeCounter added in v0.1.0

func (mmWrite *WriterMock) WriteBeforeCounter() uint64

WriteBeforeCounter returns a count of WriterMock.Write invocations

type WriterMockWriteExpectation added in v0.1.0

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

WriterMockWriteExpectation specifies expectation struct of the Writer.Write

func (*WriterMockWriteExpectation) Then added in v0.1.0

Then sets up Writer.Write return parameters for the expectation previously defined by the When method

type WriterMockWriteExpectationOrigins added in v0.6.0

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

WriterMockWriteOrigins contains origins of expectations of the Writer.Write

type WriterMockWriteParamPtrs added in v0.3.0

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

WriterMockWriteParamPtrs contains pointers to parameters of the Writer.Write

type WriterMockWriteParams added in v0.1.0

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

WriterMockWriteParams contains parameters of the Writer.Write

type WriterMockWriteResults added in v0.1.0

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

WriterMockWriteResults contains results of the Writer.Write

Jump to

Keyboard shortcuts

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