Documentation
¶
Index ¶
- type CloserMock
- func (mmClose *CloserMock) Close() (err error)
- func (mmClose *CloserMock) CloseAfterCounter() uint64
- func (mmClose *CloserMock) CloseBeforeCounter() uint64
- func (m *CloserMock) MinimockCloseDone() bool
- func (m *CloserMock) MinimockCloseInspect()
- func (m *CloserMock) MinimockFinish()
- func (m *CloserMock) MinimockWait(timeout mm_time.Duration)
- type CloserMockCloseExpectation
- type CloserMockCloseResults
- type HTTPClientMock
- func (mmDo *HTTPClientMock) Do(req *http.Request) (rp1 *http.Response, err error)
- func (mmDo *HTTPClientMock) DoAfterCounter() uint64
- func (mmDo *HTTPClientMock) DoBeforeCounter() uint64
- func (m *HTTPClientMock) MinimockDoDone() bool
- func (m *HTTPClientMock) MinimockDoInspect()
- func (m *HTTPClientMock) MinimockFinish()
- func (m *HTTPClientMock) MinimockWait(timeout mm_time.Duration)
- type HTTPClientMockDoExpectation
- type HTTPClientMockDoParams
- type HTTPClientMockDoResults
- type LoggerMock
- func (mmDebug *LoggerMock) Debug(a ...any)
- func (mmDebug *LoggerMock) DebugAfterCounter() uint64
- func (mmDebug *LoggerMock) DebugBeforeCounter() uint64
- func (mmDebugf *LoggerMock) Debugf(template string, a ...any)
- func (mmDebugf *LoggerMock) DebugfAfterCounter() uint64
- func (mmDebugf *LoggerMock) DebugfBeforeCounter() uint64
- func (mmError *LoggerMock) Error(a ...any)
- func (mmError *LoggerMock) ErrorAfterCounter() uint64
- func (mmError *LoggerMock) ErrorBeforeCounter() uint64
- func (mmErrorf *LoggerMock) Errorf(template string, a ...any)
- func (mmErrorf *LoggerMock) ErrorfAfterCounter() uint64
- func (mmErrorf *LoggerMock) ErrorfBeforeCounter() uint64
- func (mmInfo *LoggerMock) Info(a ...any)
- func (mmInfo *LoggerMock) InfoAfterCounter() uint64
- func (mmInfo *LoggerMock) InfoBeforeCounter() uint64
- func (mmInfof *LoggerMock) Infof(template string, a ...any)
- func (mmInfof *LoggerMock) InfofAfterCounter() uint64
- func (mmInfof *LoggerMock) InfofBeforeCounter() uint64
- func (m *LoggerMock) MinimockDebugDone() bool
- func (m *LoggerMock) MinimockDebugInspect()
- func (m *LoggerMock) MinimockDebugfDone() bool
- func (m *LoggerMock) MinimockDebugfInspect()
- func (m *LoggerMock) MinimockErrorDone() bool
- func (m *LoggerMock) MinimockErrorInspect()
- func (m *LoggerMock) MinimockErrorfDone() bool
- func (m *LoggerMock) MinimockErrorfInspect()
- func (m *LoggerMock) MinimockFinish()
- func (m *LoggerMock) MinimockInfoDone() bool
- func (m *LoggerMock) MinimockInfoInspect()
- func (m *LoggerMock) MinimockInfofDone() bool
- func (m *LoggerMock) MinimockInfofInspect()
- func (m *LoggerMock) MinimockPrintResponseDone() bool
- func (m *LoggerMock) MinimockPrintResponseInspect()
- func (m *LoggerMock) MinimockWait(timeout mm_time.Duration)
- func (m *LoggerMock) MinimockWarningDone() bool
- func (m *LoggerMock) MinimockWarningInspect()
- func (m *LoggerMock) MinimockWarningfDone() bool
- func (m *LoggerMock) MinimockWarningfInspect()
- func (mmPrintResponse *LoggerMock) PrintResponse(response *http.Response)
- func (mmPrintResponse *LoggerMock) PrintResponseAfterCounter() uint64
- func (mmPrintResponse *LoggerMock) PrintResponseBeforeCounter() uint64
- func (mmWarning *LoggerMock) Warning(a ...any)
- func (mmWarning *LoggerMock) WarningAfterCounter() uint64
- func (mmWarning *LoggerMock) WarningBeforeCounter() uint64
- func (mmWarningf *LoggerMock) Warningf(template string, a ...any)
- func (mmWarningf *LoggerMock) WarningfAfterCounter() uint64
- func (mmWarningf *LoggerMock) WarningfBeforeCounter() uint64
- type LoggerMockDebugExpectation
- type LoggerMockDebugParams
- type LoggerMockDebugfExpectation
- type LoggerMockDebugfParams
- type LoggerMockErrorExpectation
- type LoggerMockErrorParams
- type LoggerMockErrorfExpectation
- type LoggerMockErrorfParams
- type LoggerMockInfoExpectation
- type LoggerMockInfoParams
- type LoggerMockInfofExpectation
- type LoggerMockInfofParams
- type LoggerMockPrintResponseExpectation
- type LoggerMockPrintResponseParams
- type LoggerMockWarningExpectation
- type LoggerMockWarningParams
- type LoggerMockWarningfExpectation
- type LoggerMockWarningfParams
- type URLReplacerFactoryMock
- func (mmMake *URLReplacerFactoryMock) Make(requestURL *url.URL) (rp1 *urlreplacer.Replacer, rp2 *urlreplacer.Replacer, err error)
- func (mmMake *URLReplacerFactoryMock) MakeAfterCounter() uint64
- func (mmMake *URLReplacerFactoryMock) MakeBeforeCounter() uint64
- func (m *URLReplacerFactoryMock) MinimockFinish()
- func (m *URLReplacerFactoryMock) MinimockMakeDone() bool
- func (m *URLReplacerFactoryMock) MinimockMakeInspect()
- func (m *URLReplacerFactoryMock) MinimockWait(timeout mm_time.Duration)
- type URLReplacerFactoryMockMakeExpectation
- type URLReplacerFactoryMockMakeParams
- type URLReplacerFactoryMockMakeResults
- type WriterMock
- func (m *WriterMock) MinimockFinish()
- func (m *WriterMock) MinimockWait(timeout mm_time.Duration)
- func (m *WriterMock) MinimockWriteDone() bool
- func (m *WriterMock) MinimockWriteInspect()
- func (mmWrite *WriterMock) Write(p []byte) (n int, err error)
- func (mmWrite *WriterMock) WriteAfterCounter() uint64
- func (mmWrite *WriterMock) WriteBeforeCounter() uint64
- type WriterMockWriteExpectation
- type WriterMockWriteParams
- type WriterMockWriteResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloserMock ¶ added in v0.1.0
type CloserMock struct {
CloseMock mCloserMockClose
// contains filtered or unexported fields
}
CloserMock implements io.Closer
func NewCloserMock ¶ added in v0.1.0
func NewCloserMock(t minimock.Tester) *CloserMock
NewCloserMock returns a mock for io.Closer
func (*CloserMock) Close ¶ added in v0.1.0
func (mmClose *CloserMock) Close() (err error)
Close implements 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 contracts.HTTPClient
func NewHTTPClientMock ¶ added in v0.1.0
func NewHTTPClientMock(t minimock.Tester) *HTTPClientMock
NewHTTPClientMock returns a mock for 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
func (e *HTTPClientMockDoExpectation) Then(rp1 *http.Response, err error) *HTTPClientMock
Then sets up HTTPClient.Do return parameters for the expectation previously defined by the When method
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 LoggerMock ¶ added in v0.0.7
type LoggerMock struct {
DebugMock mLoggerMockDebug
DebugfMock mLoggerMockDebugf
ErrorMock mLoggerMockError
ErrorfMock mLoggerMockErrorf
InfoMock mLoggerMockInfo
InfofMock mLoggerMockInfof
PrintResponseMock mLoggerMockPrintResponse
WarningMock mLoggerMockWarning
WarningfMock mLoggerMockWarningf
// contains filtered or unexported fields
}
LoggerMock implements contracts.Logger
func NewLoggerMock ¶ added in v0.0.7
func NewLoggerMock(t minimock.Tester) *LoggerMock
NewLoggerMock returns a mock for contracts.Logger
func NewNoopLogger ¶ added in v0.0.7
func NewNoopLogger(t *testing.T) *LoggerMock
func (*LoggerMock) Debug ¶ added in v0.0.7
func (mmDebug *LoggerMock) Debug(a ...any)
Debug implements 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 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(a ...any)
Error implements 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 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(a ...any)
Info implements 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 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) MinimockPrintResponseDone ¶ added in v0.0.7
func (m *LoggerMock) MinimockPrintResponseDone() bool
MinimockPrintResponseDone returns true if the count of the PrintResponse invocations corresponds the number of defined expectations
func (*LoggerMock) MinimockPrintResponseInspect ¶ added in v0.0.7
func (m *LoggerMock) MinimockPrintResponseInspect()
MinimockPrintResponseInspect 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) MinimockWarningDone ¶ added in v0.0.7
func (m *LoggerMock) MinimockWarningDone() bool
MinimockWarningDone returns true if the count of the Warning invocations corresponds the number of defined expectations
func (*LoggerMock) MinimockWarningInspect ¶ added in v0.0.7
func (m *LoggerMock) MinimockWarningInspect()
MinimockWarningInspect logs each unmet expectation
func (*LoggerMock) MinimockWarningfDone ¶ added in v0.0.7
func (m *LoggerMock) MinimockWarningfDone() bool
MinimockWarningfDone returns true if the count of the Warningf invocations corresponds the number of defined expectations
func (*LoggerMock) MinimockWarningfInspect ¶ added in v0.0.7
func (m *LoggerMock) MinimockWarningfInspect()
MinimockWarningfInspect logs each unmet expectation
func (*LoggerMock) PrintResponse ¶ added in v0.0.7
func (mmPrintResponse *LoggerMock) PrintResponse(response *http.Response)
PrintResponse implements contracts.Logger
func (*LoggerMock) PrintResponseAfterCounter ¶ added in v0.0.7
func (mmPrintResponse *LoggerMock) PrintResponseAfterCounter() uint64
PrintResponseAfterCounter returns a count of finished LoggerMock.PrintResponse invocations
func (*LoggerMock) PrintResponseBeforeCounter ¶ added in v0.0.7
func (mmPrintResponse *LoggerMock) PrintResponseBeforeCounter() uint64
PrintResponseBeforeCounter returns a count of LoggerMock.PrintResponse invocations
func (*LoggerMock) Warning ¶ added in v0.0.7
func (mmWarning *LoggerMock) Warning(a ...any)
Warning implements contracts.Logger
func (*LoggerMock) WarningAfterCounter ¶ added in v0.0.7
func (mmWarning *LoggerMock) WarningAfterCounter() uint64
WarningAfterCounter returns a count of finished LoggerMock.Warning invocations
func (*LoggerMock) WarningBeforeCounter ¶ added in v0.0.7
func (mmWarning *LoggerMock) WarningBeforeCounter() uint64
WarningBeforeCounter returns a count of LoggerMock.Warning invocations
func (*LoggerMock) Warningf ¶ added in v0.0.7
func (mmWarningf *LoggerMock) Warningf(template string, a ...any)
Warningf implements contracts.Logger
func (*LoggerMock) WarningfAfterCounter ¶ added in v0.0.7
func (mmWarningf *LoggerMock) WarningfAfterCounter() uint64
WarningfAfterCounter returns a count of finished LoggerMock.Warningf invocations
func (*LoggerMock) WarningfBeforeCounter ¶ added in v0.0.7
func (mmWarningf *LoggerMock) WarningfBeforeCounter() uint64
WarningfBeforeCounter returns a count of LoggerMock.Warningf 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
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
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
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
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
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
type LoggerMockInfofParams ¶ added in v0.0.7
type LoggerMockInfofParams struct {
// contains filtered or unexported fields
}
LoggerMockInfofParams contains parameters of the Logger.Infof
type LoggerMockPrintResponseExpectation ¶ added in v0.0.7
type LoggerMockPrintResponseExpectation struct {
Counter uint64
// contains filtered or unexported fields
}
LoggerMockPrintResponseExpectation specifies expectation struct of the Logger.PrintResponse
type LoggerMockPrintResponseParams ¶ added in v0.0.7
type LoggerMockPrintResponseParams struct {
// contains filtered or unexported fields
}
LoggerMockPrintResponseParams contains parameters of the Logger.PrintResponse
type LoggerMockWarningExpectation ¶ added in v0.0.7
type LoggerMockWarningExpectation struct {
Counter uint64
// contains filtered or unexported fields
}
LoggerMockWarningExpectation specifies expectation struct of the Logger.Warning
type LoggerMockWarningParams ¶ added in v0.0.7
type LoggerMockWarningParams struct {
// contains filtered or unexported fields
}
LoggerMockWarningParams contains parameters of the Logger.Warning
type LoggerMockWarningfExpectation ¶ added in v0.0.7
type LoggerMockWarningfExpectation struct {
Counter uint64
// contains filtered or unexported fields
}
LoggerMockWarningfExpectation specifies expectation struct of the Logger.Warningf
type LoggerMockWarningfParams ¶ added in v0.0.7
type LoggerMockWarningfParams struct {
// contains filtered or unexported fields
}
LoggerMockWarningfParams contains parameters of the Logger.Warningf
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 ¶
func (e *URLReplacerFactoryMockMakeExpectation) Then(rp1 *urlreplacer.Replacer, rp2 *urlreplacer.Replacer, err error) *URLReplacerFactoryMock
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
type WriterMock ¶ added in v0.1.0
type WriterMock struct {
WriteMock mWriterMockWrite
// contains filtered or unexported fields
}
WriterMock implements io.Writer
func NewWriterMock ¶ added in v0.1.0
func NewWriterMock(t minimock.Tester) *WriterMock
NewWriterMock returns a mock for 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 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
func (e *WriterMockWriteExpectation) Then(n int, err error) *WriterMock
Then sets up Writer.Write return parameters for the expectation previously defined by the When method
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