Documentation ¶
Overview ¶
Package tests contains tests for minimock tool and demonstrates minimock features
Index ¶
- type ActorMock
- func (mmAction *ActorMock) Action(firstParam string, secondParam int) (i1 int, err error)
- func (mmAction *ActorMock) ActionAfterCounter() uint64
- func (mmAction *ActorMock) ActionBeforeCounter() uint64
- func (m *ActorMock) MinimockActionDone() bool
- func (m *ActorMock) MinimockActionInspect()
- func (m *ActorMock) MinimockFinish()
- func (m *ActorMock) MinimockWait(timeout mm_time.Duration)
- type ActorMockActionExpectation
- type ActorMockActionExpectationOrigins
- type ActorMockActionParamPtrs
- type ActorMockActionParams
- type ActorMockActionResults
- type ContextAccepterMock
- func (mmAcceptContext *ContextAccepterMock) AcceptContext(ctx context.Context)
- func (mmAcceptContext *ContextAccepterMock) AcceptContextAfterCounter() uint64
- func (mmAcceptContext *ContextAccepterMock) AcceptContextBeforeCounter() uint64
- func (mmAcceptContextWithOtherArgs *ContextAccepterMock) AcceptContextWithOtherArgs(ctx context.Context, i1 int) (i2 int, err error)
- func (mmAcceptContextWithOtherArgs *ContextAccepterMock) AcceptContextWithOtherArgsAfterCounter() uint64
- func (mmAcceptContextWithOtherArgs *ContextAccepterMock) AcceptContextWithOtherArgsBeforeCounter() uint64
- func (mmAcceptContextWithStructArgs *ContextAccepterMock) AcceptContextWithStructArgs(ctx context.Context, s1 structArg) (i1 int, err error)
- func (mmAcceptContextWithStructArgs *ContextAccepterMock) AcceptContextWithStructArgsAfterCounter() uint64
- func (mmAcceptContextWithStructArgs *ContextAccepterMock) AcceptContextWithStructArgsBeforeCounter() uint64
- func (m *ContextAccepterMock) MinimockAcceptContextDone() bool
- func (m *ContextAccepterMock) MinimockAcceptContextInspect()
- func (m *ContextAccepterMock) MinimockAcceptContextWithOtherArgsDone() bool
- func (m *ContextAccepterMock) MinimockAcceptContextWithOtherArgsInspect()
- func (m *ContextAccepterMock) MinimockAcceptContextWithStructArgsDone() bool
- func (m *ContextAccepterMock) MinimockAcceptContextWithStructArgsInspect()
- func (m *ContextAccepterMock) MinimockFinish()
- func (m *ContextAccepterMock) MinimockWait(timeout mm_time.Duration)
- type ContextAccepterMockAcceptContextExpectation
- type ContextAccepterMockAcceptContextExpectationOrigins
- type ContextAccepterMockAcceptContextParamPtrs
- type ContextAccepterMockAcceptContextParams
- type ContextAccepterMockAcceptContextWithOtherArgsExpectation
- type ContextAccepterMockAcceptContextWithOtherArgsExpectationOrigins
- type ContextAccepterMockAcceptContextWithOtherArgsParamPtrs
- type ContextAccepterMockAcceptContextWithOtherArgsParams
- type ContextAccepterMockAcceptContextWithOtherArgsResults
- type ContextAccepterMockAcceptContextWithStructArgsExpectation
- type ContextAccepterMockAcceptContextWithStructArgsExpectationOrigins
- type ContextAccepterMockAcceptContextWithStructArgsParamPtrs
- type ContextAccepterMockAcceptContextWithStructArgsParams
- type ContextAccepterMockAcceptContextWithStructArgsResults
- type CustomFormatterNameMock
- func (mmFormat *CustomFormatterNameMock) Format(s1 string, p1 ...interface{}) (s2 string)
- func (mmFormat *CustomFormatterNameMock) FormatAfterCounter() uint64
- func (mmFormat *CustomFormatterNameMock) FormatBeforeCounter() uint64
- func (m *CustomFormatterNameMock) MinimockFinish()
- func (m *CustomFormatterNameMock) MinimockFormatDone() bool
- func (m *CustomFormatterNameMock) MinimockFormatInspect()
- func (m *CustomFormatterNameMock) MinimockWait(timeout mm_time.Duration)
- type CustomFormatterNameMockFormatExpectation
- type CustomFormatterNameMockFormatExpectationOrigins
- type CustomFormatterNameMockFormatParamPtrs
- type CustomFormatterNameMockFormatParams
- type CustomFormatterNameMockFormatResults
- type Formatter
- type FormatterAliasMock
- func (mmFormat *FormatterAliasMock) Format(s1 string, p1 ...interface{}) (s2 string)
- func (mmFormat *FormatterAliasMock) FormatAfterCounter() uint64
- func (mmFormat *FormatterAliasMock) FormatBeforeCounter() uint64
- func (m *FormatterAliasMock) MinimockFinish()
- func (m *FormatterAliasMock) MinimockFormatDone() bool
- func (m *FormatterAliasMock) MinimockFormatInspect()
- func (m *FormatterAliasMock) MinimockWait(timeout mm_time.Duration)
- type FormatterAliasMockFormatExpectation
- type FormatterAliasMockFormatExpectationOrigins
- type FormatterAliasMockFormatParamPtrs
- type FormatterAliasMockFormatParams
- type FormatterAliasMockFormatResults
- type FormatterMock
- func (mmFormat *FormatterMock) Format(s1 string, p1 ...interface{}) (s2 string)
- func (mmFormat *FormatterMock) FormatAfterCounter() uint64
- func (mmFormat *FormatterMock) FormatBeforeCounter() uint64
- func (m *FormatterMock) MinimockFinish()
- func (m *FormatterMock) MinimockFormatDone() bool
- func (m *FormatterMock) MinimockFormatInspect()
- func (m *FormatterMock) MinimockWait(timeout mm_time.Duration)
- type FormatterMockFormatExpectation
- type FormatterMockFormatExpectationOrigins
- type FormatterMockFormatParamPtrs
- type FormatterMockFormatParams
- type FormatterMockFormatResults
- type FormatterTypeMock
- func (mmFormat *FormatterTypeMock) Format(s1 string, p1 ...interface{}) (s2 string)
- func (mmFormat *FormatterTypeMock) FormatAfterCounter() uint64
- func (mmFormat *FormatterTypeMock) FormatBeforeCounter() uint64
- func (m *FormatterTypeMock) MinimockFinish()
- func (m *FormatterTypeMock) MinimockFormatDone() bool
- func (m *FormatterTypeMock) MinimockFormatInspect()
- func (m *FormatterTypeMock) MinimockWait(timeout mm_time.Duration)
- type FormatterTypeMockFormatExpectation
- type FormatterTypeMockFormatExpectationOrigins
- type FormatterTypeMockFormatParamPtrs
- type FormatterTypeMockFormatParams
- type FormatterTypeMockFormatResults
- type GenericComplexUnionMock
- func (m *GenericComplexUnionMock[T]) MinimockFinish()
- func (m *GenericComplexUnionMock[T]) MinimockNameDone() bool
- func (m *GenericComplexUnionMock[T]) MinimockNameInspect()
- func (m *GenericComplexUnionMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericComplexUnionMock[T]) Name(t1 T)
- func (mmName *GenericComplexUnionMock[T]) NameAfterCounter() uint64
- func (mmName *GenericComplexUnionMock[T]) NameBeforeCounter() uint64
- type GenericComplexUnionMockNameExpectation
- type GenericComplexUnionMockNameExpectationOrigins
- type GenericComplexUnionMockNameParamPtrs
- type GenericComplexUnionMockNameParams
- type GenericInMock
- func (m *GenericInMock[T]) MinimockFinish()
- func (m *GenericInMock[T]) MinimockNameDone() bool
- func (m *GenericInMock[T]) MinimockNameInspect()
- func (m *GenericInMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericInMock[T]) Name(t1 T)
- func (mmName *GenericInMock[T]) NameAfterCounter() uint64
- func (mmName *GenericInMock[T]) NameBeforeCounter() uint64
- type GenericInMockNameExpectation
- type GenericInMockNameExpectationOrigins
- type GenericInMockNameParamPtrs
- type GenericInMockNameParams
- type GenericInlineUnionMock
- func (m *GenericInlineUnionMock[T]) MinimockFinish()
- func (m *GenericInlineUnionMock[T]) MinimockNameDone() bool
- func (m *GenericInlineUnionMock[T]) MinimockNameInspect()
- func (m *GenericInlineUnionMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericInlineUnionMock[T]) Name(t1 T)
- func (mmName *GenericInlineUnionMock[T]) NameAfterCounter() uint64
- func (mmName *GenericInlineUnionMock[T]) NameBeforeCounter() uint64
- type GenericInlineUnionMockNameExpectation
- type GenericInlineUnionMockNameExpectationOrigins
- type GenericInlineUnionMockNameParamPtrs
- type GenericInlineUnionMockNameParams
- type GenericInlineUnionWithManyTypesMock
- func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockFinish()
- func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockNameDone() bool
- func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockNameInspect()
- func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericInlineUnionWithManyTypesMock[T]) Name(t1 T)
- func (mmName *GenericInlineUnionWithManyTypesMock[T]) NameAfterCounter() uint64
- func (mmName *GenericInlineUnionWithManyTypesMock[T]) NameBeforeCounter() uint64
- type GenericInlineUnionWithManyTypesMockNameExpectation
- type GenericInlineUnionWithManyTypesMockNameExpectationOrigins
- type GenericInlineUnionWithManyTypesMockNameParamPtrs
- type GenericInlineUnionWithManyTypesMockNameParams
- type GenericInoutMock
- func (m *GenericInoutMock[T]) MinimockFinish()
- func (m *GenericInoutMock[T]) MinimockNameDone() bool
- func (m *GenericInoutMock[T]) MinimockNameInspect()
- func (m *GenericInoutMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericInoutMock[T]) Name(t1 T) (t2 T)
- func (mmName *GenericInoutMock[T]) NameAfterCounter() uint64
- func (mmName *GenericInoutMock[T]) NameBeforeCounter() uint64
- type GenericInoutMockNameExpectation
- type GenericInoutMockNameExpectationOrigins
- type GenericInoutMockNameParamPtrs
- type GenericInoutMockNameParams
- type GenericInoutMockNameResults
- type GenericMultipleTypesMock
- func (m *GenericMultipleTypesMock[T, K]) MinimockFinish()
- func (m *GenericMultipleTypesMock[T, K]) MinimockNameDone() bool
- func (m *GenericMultipleTypesMock[T, K]) MinimockNameInspect()
- func (m *GenericMultipleTypesMock[T, K]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericMultipleTypesMock[T, K]) Name(t1 T, k1 K)
- func (mmName *GenericMultipleTypesMock[T, K]) NameAfterCounter() uint64
- func (mmName *GenericMultipleTypesMock[T, K]) NameBeforeCounter() uint64
- type GenericMultipleTypesMockNameExpectation
- type GenericMultipleTypesMockNameExpectationOrigins
- type GenericMultipleTypesMockNameParamPtrs
- type GenericMultipleTypesMockNameParams
- type GenericOutMock
- func (m *GenericOutMock[T]) MinimockFinish()
- func (m *GenericOutMock[T]) MinimockNameDone() bool
- func (m *GenericOutMock[T]) MinimockNameInspect()
- func (m *GenericOutMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericOutMock[T]) Name() (t1 T)
- func (mmName *GenericOutMock[T]) NameAfterCounter() uint64
- func (mmName *GenericOutMock[T]) NameBeforeCounter() uint64
- type GenericOutMockNameExpectation
- type GenericOutMockNameResults
- type GenericSimpleUnionMock
- func (m *GenericSimpleUnionMock[T]) MinimockFinish()
- func (m *GenericSimpleUnionMock[T]) MinimockNameDone() bool
- func (m *GenericSimpleUnionMock[T]) MinimockNameInspect()
- func (m *GenericSimpleUnionMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericSimpleUnionMock[T]) Name(t1 T)
- func (mmName *GenericSimpleUnionMock[T]) NameAfterCounter() uint64
- func (mmName *GenericSimpleUnionMock[T]) NameBeforeCounter() uint64
- type GenericSimpleUnionMockNameExpectation
- type GenericSimpleUnionMockNameExpectationOrigins
- type GenericSimpleUnionMockNameParamPtrs
- type GenericSimpleUnionMockNameParams
- type GenericSpecificMock
- func (m *GenericSpecificMock[T]) MinimockFinish()
- func (m *GenericSpecificMock[T]) MinimockNameDone() bool
- func (m *GenericSpecificMock[T]) MinimockNameInspect()
- func (m *GenericSpecificMock[T]) MinimockWait(timeout mm_time.Duration)
- func (mmName *GenericSpecificMock[T]) Name(t1 T)
- func (mmName *GenericSpecificMock[T]) NameAfterCounter() uint64
- func (mmName *GenericSpecificMock[T]) NameBeforeCounter() uint64
- type GenericSpecificMockNameExpectation
- type GenericSpecificMockNameExpectationOrigins
- type GenericSpecificMockNameParamPtrs
- type GenericSpecificMockNameParams
- type ReaderMock
- func (m *ReaderMock) MinimockFinish()
- func (m *ReaderMock) MinimockReadDone() bool
- func (m *ReaderMock) MinimockReadInspect()
- func (m *ReaderMock) MinimockWait(timeout mm_time.Duration)
- func (mmRead *ReaderMock) Read(p []byte) (n int, err error)
- func (mmRead *ReaderMock) ReadAfterCounter() uint64
- func (mmRead *ReaderMock) ReadBeforeCounter() uint64
- type ReaderMockReadExpectation
- type ReaderMockReadExpectationOrigins
- type ReaderMockReadParamPtrs
- type ReaderMockReadParams
- type ReaderMockReadResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActorMock ¶ added in v3.3.7
type ActorMock struct { ActionMock mActorMockAction // contains filtered or unexported fields }
ActorMock implements actor
func NewActorMock ¶ added in v3.3.7
func NewActorMock(t minimock.Tester) *ActorMock
NewActorMock returns a mock for actor
func (*ActorMock) ActionAfterCounter ¶ added in v3.3.7
ActionAfterCounter returns a count of finished ActorMock.Action invocations
func (*ActorMock) ActionBeforeCounter ¶ added in v3.3.7
ActionBeforeCounter returns a count of ActorMock.Action invocations
func (*ActorMock) MinimockActionDone ¶ added in v3.3.7
MinimockActionDone returns true if the count of the Action invocations corresponds the number of defined expectations
func (*ActorMock) MinimockActionInspect ¶ added in v3.3.7
func (m *ActorMock) MinimockActionInspect()
MinimockActionInspect logs each unmet expectation
func (*ActorMock) MinimockFinish ¶ added in v3.3.7
func (m *ActorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ActorMock) MinimockWait ¶ added in v3.3.7
MinimockWait waits for all mocked methods to be called the expected number of times
type ActorMockActionExpectation ¶ added in v3.3.7
type ActorMockActionExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActorMockActionExpectation specifies expectation struct of the actor.Action
type ActorMockActionExpectationOrigins ¶ added in v3.4.0
type ActorMockActionExpectationOrigins struct {
// contains filtered or unexported fields
}
ActorMockActionOrigins contains origins of expectations of the actor.Action
type ActorMockActionParamPtrs ¶ added in v3.3.7
type ActorMockActionParamPtrs struct {
// contains filtered or unexported fields
}
ActorMockActionParamPtrs contains pointers to parameters of the actor.Action
type ActorMockActionParams ¶ added in v3.3.7
type ActorMockActionParams struct {
// contains filtered or unexported fields
}
ActorMockActionParams contains parameters of the actor.Action
type ActorMockActionResults ¶ added in v3.3.7
type ActorMockActionResults struct {
// contains filtered or unexported fields
}
ActorMockActionResults contains results of the actor.Action
type ContextAccepterMock ¶ added in v3.2.1
type ContextAccepterMock struct { AcceptContextMock mContextAccepterMockAcceptContext AcceptContextWithOtherArgsMock mContextAccepterMockAcceptContextWithOtherArgs AcceptContextWithStructArgsMock mContextAccepterMockAcceptContextWithStructArgs // contains filtered or unexported fields }
ContextAccepterMock implements contextAccepter
func NewContextAccepterMock ¶ added in v3.2.1
func NewContextAccepterMock(t minimock.Tester) *ContextAccepterMock
NewContextAccepterMock returns a mock for contextAccepter
func (*ContextAccepterMock) AcceptContext ¶ added in v3.2.1
func (mmAcceptContext *ContextAccepterMock) AcceptContext(ctx context.Context)
AcceptContext implements contextAccepter
func (*ContextAccepterMock) AcceptContextAfterCounter ¶ added in v3.2.1
func (mmAcceptContext *ContextAccepterMock) AcceptContextAfterCounter() uint64
AcceptContextAfterCounter returns a count of finished ContextAccepterMock.AcceptContext invocations
func (*ContextAccepterMock) AcceptContextBeforeCounter ¶ added in v3.2.1
func (mmAcceptContext *ContextAccepterMock) AcceptContextBeforeCounter() uint64
AcceptContextBeforeCounter returns a count of ContextAccepterMock.AcceptContext invocations
func (*ContextAccepterMock) AcceptContextWithOtherArgs ¶ added in v3.2.1
func (mmAcceptContextWithOtherArgs *ContextAccepterMock) AcceptContextWithOtherArgs(ctx context.Context, i1 int) (i2 int, err error)
AcceptContextWithOtherArgs implements contextAccepter
func (*ContextAccepterMock) AcceptContextWithOtherArgsAfterCounter ¶ added in v3.2.1
func (mmAcceptContextWithOtherArgs *ContextAccepterMock) AcceptContextWithOtherArgsAfterCounter() uint64
AcceptContextWithOtherArgsAfterCounter returns a count of finished ContextAccepterMock.AcceptContextWithOtherArgs invocations
func (*ContextAccepterMock) AcceptContextWithOtherArgsBeforeCounter ¶ added in v3.2.1
func (mmAcceptContextWithOtherArgs *ContextAccepterMock) AcceptContextWithOtherArgsBeforeCounter() uint64
AcceptContextWithOtherArgsBeforeCounter returns a count of ContextAccepterMock.AcceptContextWithOtherArgs invocations
func (*ContextAccepterMock) AcceptContextWithStructArgs ¶ added in v3.3.8
func (mmAcceptContextWithStructArgs *ContextAccepterMock) AcceptContextWithStructArgs(ctx context.Context, s1 structArg) (i1 int, err error)
AcceptContextWithStructArgs implements contextAccepter
func (*ContextAccepterMock) AcceptContextWithStructArgsAfterCounter ¶ added in v3.3.8
func (mmAcceptContextWithStructArgs *ContextAccepterMock) AcceptContextWithStructArgsAfterCounter() uint64
AcceptContextWithStructArgsAfterCounter returns a count of finished ContextAccepterMock.AcceptContextWithStructArgs invocations
func (*ContextAccepterMock) AcceptContextWithStructArgsBeforeCounter ¶ added in v3.3.8
func (mmAcceptContextWithStructArgs *ContextAccepterMock) AcceptContextWithStructArgsBeforeCounter() uint64
AcceptContextWithStructArgsBeforeCounter returns a count of ContextAccepterMock.AcceptContextWithStructArgs invocations
func (*ContextAccepterMock) MinimockAcceptContextDone ¶ added in v3.2.1
func (m *ContextAccepterMock) MinimockAcceptContextDone() bool
MinimockAcceptContextDone returns true if the count of the AcceptContext invocations corresponds the number of defined expectations
func (*ContextAccepterMock) MinimockAcceptContextInspect ¶ added in v3.2.1
func (m *ContextAccepterMock) MinimockAcceptContextInspect()
MinimockAcceptContextInspect logs each unmet expectation
func (*ContextAccepterMock) MinimockAcceptContextWithOtherArgsDone ¶ added in v3.2.1
func (m *ContextAccepterMock) MinimockAcceptContextWithOtherArgsDone() bool
MinimockAcceptContextWithOtherArgsDone returns true if the count of the AcceptContextWithOtherArgs invocations corresponds the number of defined expectations
func (*ContextAccepterMock) MinimockAcceptContextWithOtherArgsInspect ¶ added in v3.2.1
func (m *ContextAccepterMock) MinimockAcceptContextWithOtherArgsInspect()
MinimockAcceptContextWithOtherArgsInspect logs each unmet expectation
func (*ContextAccepterMock) MinimockAcceptContextWithStructArgsDone ¶ added in v3.3.8
func (m *ContextAccepterMock) MinimockAcceptContextWithStructArgsDone() bool
MinimockAcceptContextWithStructArgsDone returns true if the count of the AcceptContextWithStructArgs invocations corresponds the number of defined expectations
func (*ContextAccepterMock) MinimockAcceptContextWithStructArgsInspect ¶ added in v3.3.8
func (m *ContextAccepterMock) MinimockAcceptContextWithStructArgsInspect()
MinimockAcceptContextWithStructArgsInspect logs each unmet expectation
func (*ContextAccepterMock) MinimockFinish ¶ added in v3.2.1
func (m *ContextAccepterMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ContextAccepterMock) MinimockWait ¶ added in v3.2.1
func (m *ContextAccepterMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type ContextAccepterMockAcceptContextExpectation ¶ added in v3.2.1
type ContextAccepterMockAcceptContextExpectation struct { Counter uint64 // contains filtered or unexported fields }
ContextAccepterMockAcceptContextExpectation specifies expectation struct of the contextAccepter.AcceptContext
type ContextAccepterMockAcceptContextExpectationOrigins ¶ added in v3.4.0
type ContextAccepterMockAcceptContextExpectationOrigins struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextOrigins contains origins of expectations of the contextAccepter.AcceptContext
type ContextAccepterMockAcceptContextParamPtrs ¶ added in v3.3.7
type ContextAccepterMockAcceptContextParamPtrs struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextParamPtrs contains pointers to parameters of the contextAccepter.AcceptContext
type ContextAccepterMockAcceptContextParams ¶ added in v3.2.1
type ContextAccepterMockAcceptContextParams struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextParams contains parameters of the contextAccepter.AcceptContext
type ContextAccepterMockAcceptContextWithOtherArgsExpectation ¶ added in v3.2.1
type ContextAccepterMockAcceptContextWithOtherArgsExpectation struct { Counter uint64 // contains filtered or unexported fields }
ContextAccepterMockAcceptContextWithOtherArgsExpectation specifies expectation struct of the contextAccepter.AcceptContextWithOtherArgs
func (*ContextAccepterMockAcceptContextWithOtherArgsExpectation) Then ¶ added in v3.2.1
func (e *ContextAccepterMockAcceptContextWithOtherArgsExpectation) Then(i2 int, err error) *ContextAccepterMock
Then sets up contextAccepter.AcceptContextWithOtherArgs return parameters for the expectation previously defined by the When method
type ContextAccepterMockAcceptContextWithOtherArgsExpectationOrigins ¶ added in v3.4.0
type ContextAccepterMockAcceptContextWithOtherArgsExpectationOrigins struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithOtherArgsOrigins contains origins of expectations of the contextAccepter.AcceptContextWithOtherArgs
type ContextAccepterMockAcceptContextWithOtherArgsParamPtrs ¶ added in v3.3.7
type ContextAccepterMockAcceptContextWithOtherArgsParamPtrs struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithOtherArgsParamPtrs contains pointers to parameters of the contextAccepter.AcceptContextWithOtherArgs
type ContextAccepterMockAcceptContextWithOtherArgsParams ¶ added in v3.2.1
type ContextAccepterMockAcceptContextWithOtherArgsParams struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithOtherArgsParams contains parameters of the contextAccepter.AcceptContextWithOtherArgs
type ContextAccepterMockAcceptContextWithOtherArgsResults ¶ added in v3.2.1
type ContextAccepterMockAcceptContextWithOtherArgsResults struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithOtherArgsResults contains results of the contextAccepter.AcceptContextWithOtherArgs
type ContextAccepterMockAcceptContextWithStructArgsExpectation ¶ added in v3.3.8
type ContextAccepterMockAcceptContextWithStructArgsExpectation struct { Counter uint64 // contains filtered or unexported fields }
ContextAccepterMockAcceptContextWithStructArgsExpectation specifies expectation struct of the contextAccepter.AcceptContextWithStructArgs
func (*ContextAccepterMockAcceptContextWithStructArgsExpectation) Then ¶ added in v3.3.8
func (e *ContextAccepterMockAcceptContextWithStructArgsExpectation) Then(i1 int, err error) *ContextAccepterMock
Then sets up contextAccepter.AcceptContextWithStructArgs return parameters for the expectation previously defined by the When method
type ContextAccepterMockAcceptContextWithStructArgsExpectationOrigins ¶ added in v3.4.0
type ContextAccepterMockAcceptContextWithStructArgsExpectationOrigins struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithStructArgsOrigins contains origins of expectations of the contextAccepter.AcceptContextWithStructArgs
type ContextAccepterMockAcceptContextWithStructArgsParamPtrs ¶ added in v3.3.8
type ContextAccepterMockAcceptContextWithStructArgsParamPtrs struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithStructArgsParamPtrs contains pointers to parameters of the contextAccepter.AcceptContextWithStructArgs
type ContextAccepterMockAcceptContextWithStructArgsParams ¶ added in v3.3.8
type ContextAccepterMockAcceptContextWithStructArgsParams struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithStructArgsParams contains parameters of the contextAccepter.AcceptContextWithStructArgs
type ContextAccepterMockAcceptContextWithStructArgsResults ¶ added in v3.3.8
type ContextAccepterMockAcceptContextWithStructArgsResults struct {
// contains filtered or unexported fields
}
ContextAccepterMockAcceptContextWithStructArgsResults contains results of the contextAccepter.AcceptContextWithStructArgs
type CustomFormatterNameMock ¶ added in v3.0.9
type CustomFormatterNameMock struct { FormatMock mCustomFormatterNameMockFormat // contains filtered or unexported fields }
CustomFormatterNameMock implements Formatter
func NewCustomFormatterNameMock ¶ added in v3.0.9
func NewCustomFormatterNameMock(t minimock.Tester) *CustomFormatterNameMock
NewCustomFormatterNameMock returns a mock for Formatter
func (*CustomFormatterNameMock) Format ¶ added in v3.0.9
func (mmFormat *CustomFormatterNameMock) Format(s1 string, p1 ...interface{}) (s2 string)
Format implements Formatter
func (*CustomFormatterNameMock) FormatAfterCounter ¶ added in v3.0.9
func (mmFormat *CustomFormatterNameMock) FormatAfterCounter() uint64
FormatAfterCounter returns a count of finished CustomFormatterNameMock.Format invocations
func (*CustomFormatterNameMock) FormatBeforeCounter ¶ added in v3.0.9
func (mmFormat *CustomFormatterNameMock) FormatBeforeCounter() uint64
FormatBeforeCounter returns a count of CustomFormatterNameMock.Format invocations
func (*CustomFormatterNameMock) MinimockFinish ¶ added in v3.0.9
func (m *CustomFormatterNameMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CustomFormatterNameMock) MinimockFormatDone ¶ added in v3.0.9
func (m *CustomFormatterNameMock) MinimockFormatDone() bool
MinimockFormatDone returns true if the count of the Format invocations corresponds the number of defined expectations
func (*CustomFormatterNameMock) MinimockFormatInspect ¶ added in v3.0.9
func (m *CustomFormatterNameMock) MinimockFormatInspect()
MinimockFormatInspect logs each unmet expectation
func (*CustomFormatterNameMock) MinimockWait ¶ added in v3.0.9
func (m *CustomFormatterNameMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type CustomFormatterNameMockFormatExpectation ¶ added in v3.0.9
type CustomFormatterNameMockFormatExpectation struct { Counter uint64 // contains filtered or unexported fields }
CustomFormatterNameMockFormatExpectation specifies expectation struct of the Formatter.Format
func (*CustomFormatterNameMockFormatExpectation) Then ¶ added in v3.0.9
func (e *CustomFormatterNameMockFormatExpectation) Then(s2 string) *CustomFormatterNameMock
Then sets up Formatter.Format return parameters for the expectation previously defined by the When method
type CustomFormatterNameMockFormatExpectationOrigins ¶ added in v3.4.0
type CustomFormatterNameMockFormatExpectationOrigins struct {
// contains filtered or unexported fields
}
CustomFormatterNameMockFormatOrigins contains origins of expectations of the Formatter.Format
type CustomFormatterNameMockFormatParamPtrs ¶ added in v3.3.12
type CustomFormatterNameMockFormatParamPtrs struct {
// contains filtered or unexported fields
}
CustomFormatterNameMockFormatParamPtrs contains pointers to parameters of the Formatter.Format
type CustomFormatterNameMockFormatParams ¶ added in v3.0.9
type CustomFormatterNameMockFormatParams struct {
// contains filtered or unexported fields
}
CustomFormatterNameMockFormatParams contains parameters of the Formatter.Format
type CustomFormatterNameMockFormatResults ¶ added in v3.0.9
type CustomFormatterNameMockFormatResults struct {
// contains filtered or unexported fields
}
CustomFormatterNameMockFormatResults contains results of the Formatter.Format
type Formatter ¶
type Formatter interface {
// contains filtered or unexported methods
}
Formatter interface is used to test code generated by minimock
type FormatterAliasMock ¶ added in v3.3.14
type FormatterAliasMock struct { FormatMock mFormatterAliasMockFormat // contains filtered or unexported fields }
FormatterAliasMock implements formatterAlias
func NewFormatterAliasMock ¶ added in v3.3.14
func NewFormatterAliasMock(t minimock.Tester) *FormatterAliasMock
NewFormatterAliasMock returns a mock for formatterAlias
func (*FormatterAliasMock) Format ¶ added in v3.3.14
func (mmFormat *FormatterAliasMock) Format(s1 string, p1 ...interface{}) (s2 string)
Format implements formatterAlias
func (*FormatterAliasMock) FormatAfterCounter ¶ added in v3.3.14
func (mmFormat *FormatterAliasMock) FormatAfterCounter() uint64
FormatAfterCounter returns a count of finished FormatterAliasMock.Format invocations
func (*FormatterAliasMock) FormatBeforeCounter ¶ added in v3.3.14
func (mmFormat *FormatterAliasMock) FormatBeforeCounter() uint64
FormatBeforeCounter returns a count of FormatterAliasMock.Format invocations
func (*FormatterAliasMock) MinimockFinish ¶ added in v3.3.14
func (m *FormatterAliasMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FormatterAliasMock) MinimockFormatDone ¶ added in v3.3.14
func (m *FormatterAliasMock) MinimockFormatDone() bool
MinimockFormatDone returns true if the count of the Format invocations corresponds the number of defined expectations
func (*FormatterAliasMock) MinimockFormatInspect ¶ added in v3.3.14
func (m *FormatterAliasMock) MinimockFormatInspect()
MinimockFormatInspect logs each unmet expectation
func (*FormatterAliasMock) MinimockWait ¶ added in v3.3.14
func (m *FormatterAliasMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type FormatterAliasMockFormatExpectation ¶ added in v3.3.14
type FormatterAliasMockFormatExpectation struct { Counter uint64 // contains filtered or unexported fields }
FormatterAliasMockFormatExpectation specifies expectation struct of the formatterAlias.Format
func (*FormatterAliasMockFormatExpectation) Then ¶ added in v3.3.14
func (e *FormatterAliasMockFormatExpectation) Then(s2 string) *FormatterAliasMock
Then sets up formatterAlias.Format return parameters for the expectation previously defined by the When method
type FormatterAliasMockFormatExpectationOrigins ¶ added in v3.4.0
type FormatterAliasMockFormatExpectationOrigins struct {
// contains filtered or unexported fields
}
FormatterAliasMockFormatOrigins contains origins of expectations of the formatterAlias.Format
type FormatterAliasMockFormatParamPtrs ¶ added in v3.3.14
type FormatterAliasMockFormatParamPtrs struct {
// contains filtered or unexported fields
}
FormatterAliasMockFormatParamPtrs contains pointers to parameters of the formatterAlias.Format
type FormatterAliasMockFormatParams ¶ added in v3.3.14
type FormatterAliasMockFormatParams struct {
// contains filtered or unexported fields
}
FormatterAliasMockFormatParams contains parameters of the formatterAlias.Format
type FormatterAliasMockFormatResults ¶ added in v3.3.14
type FormatterAliasMockFormatResults struct {
// contains filtered or unexported fields
}
FormatterAliasMockFormatResults contains results of the formatterAlias.Format
type FormatterMock ¶
type FormatterMock struct { FormatMock mFormatterMockFormat // contains filtered or unexported fields }
FormatterMock implements Formatter
func NewFormatterMock ¶
func NewFormatterMock(t minimock.Tester) *FormatterMock
NewFormatterMock returns a mock for Formatter
func (*FormatterMock) Format ¶
func (mmFormat *FormatterMock) Format(s1 string, p1 ...interface{}) (s2 string)
Format implements Formatter
func (*FormatterMock) FormatAfterCounter ¶
func (mmFormat *FormatterMock) FormatAfterCounter() uint64
FormatAfterCounter returns a count of finished FormatterMock.Format invocations
func (*FormatterMock) FormatBeforeCounter ¶
func (mmFormat *FormatterMock) FormatBeforeCounter() uint64
FormatBeforeCounter returns a count of FormatterMock.Format invocations
func (*FormatterMock) MinimockFinish ¶
func (m *FormatterMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FormatterMock) MinimockFormatDone ¶
func (m *FormatterMock) MinimockFormatDone() bool
MinimockFormatDone returns true if the count of the Format invocations corresponds the number of defined expectations
func (*FormatterMock) MinimockFormatInspect ¶
func (m *FormatterMock) MinimockFormatInspect()
MinimockFormatInspect logs each unmet expectation
func (*FormatterMock) MinimockWait ¶
func (m *FormatterMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type FormatterMockFormatExpectation ¶
type FormatterMockFormatExpectation struct { Counter uint64 // contains filtered or unexported fields }
FormatterMockFormatExpectation specifies expectation struct of the Formatter.Format
func (*FormatterMockFormatExpectation) Then ¶
func (e *FormatterMockFormatExpectation) Then(s2 string) *FormatterMock
Then sets up Formatter.Format return parameters for the expectation previously defined by the When method
type FormatterMockFormatExpectationOrigins ¶ added in v3.4.0
type FormatterMockFormatExpectationOrigins struct {
// contains filtered or unexported fields
}
FormatterMockFormatOrigins contains origins of expectations of the Formatter.Format
type FormatterMockFormatParamPtrs ¶ added in v3.3.7
type FormatterMockFormatParamPtrs struct {
// contains filtered or unexported fields
}
FormatterMockFormatParamPtrs contains pointers to parameters of the Formatter.Format
type FormatterMockFormatParams ¶
type FormatterMockFormatParams struct {
// contains filtered or unexported fields
}
FormatterMockFormatParams contains parameters of the Formatter.Format
type FormatterMockFormatResults ¶
type FormatterMockFormatResults struct {
// contains filtered or unexported fields
}
FormatterMockFormatResults contains results of the Formatter.Format
type FormatterTypeMock ¶ added in v3.3.14
type FormatterTypeMock struct { FormatMock mFormatterTypeMockFormat // contains filtered or unexported fields }
FormatterTypeMock implements formatterType
func NewFormatterTypeMock ¶ added in v3.3.14
func NewFormatterTypeMock(t minimock.Tester) *FormatterTypeMock
NewFormatterTypeMock returns a mock for formatterType
func (*FormatterTypeMock) Format ¶ added in v3.3.14
func (mmFormat *FormatterTypeMock) Format(s1 string, p1 ...interface{}) (s2 string)
Format implements formatterType
func (*FormatterTypeMock) FormatAfterCounter ¶ added in v3.3.14
func (mmFormat *FormatterTypeMock) FormatAfterCounter() uint64
FormatAfterCounter returns a count of finished FormatterTypeMock.Format invocations
func (*FormatterTypeMock) FormatBeforeCounter ¶ added in v3.3.14
func (mmFormat *FormatterTypeMock) FormatBeforeCounter() uint64
FormatBeforeCounter returns a count of FormatterTypeMock.Format invocations
func (*FormatterTypeMock) MinimockFinish ¶ added in v3.3.14
func (m *FormatterTypeMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FormatterTypeMock) MinimockFormatDone ¶ added in v3.3.14
func (m *FormatterTypeMock) MinimockFormatDone() bool
MinimockFormatDone returns true if the count of the Format invocations corresponds the number of defined expectations
func (*FormatterTypeMock) MinimockFormatInspect ¶ added in v3.3.14
func (m *FormatterTypeMock) MinimockFormatInspect()
MinimockFormatInspect logs each unmet expectation
func (*FormatterTypeMock) MinimockWait ¶ added in v3.3.14
func (m *FormatterTypeMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type FormatterTypeMockFormatExpectation ¶ added in v3.3.14
type FormatterTypeMockFormatExpectation struct { Counter uint64 // contains filtered or unexported fields }
FormatterTypeMockFormatExpectation specifies expectation struct of the formatterType.Format
func (*FormatterTypeMockFormatExpectation) Then ¶ added in v3.3.14
func (e *FormatterTypeMockFormatExpectation) Then(s2 string) *FormatterTypeMock
Then sets up formatterType.Format return parameters for the expectation previously defined by the When method
type FormatterTypeMockFormatExpectationOrigins ¶ added in v3.4.0
type FormatterTypeMockFormatExpectationOrigins struct {
// contains filtered or unexported fields
}
FormatterTypeMockFormatOrigins contains origins of expectations of the formatterType.Format
type FormatterTypeMockFormatParamPtrs ¶ added in v3.3.14
type FormatterTypeMockFormatParamPtrs struct {
// contains filtered or unexported fields
}
FormatterTypeMockFormatParamPtrs contains pointers to parameters of the formatterType.Format
type FormatterTypeMockFormatParams ¶ added in v3.3.14
type FormatterTypeMockFormatParams struct {
// contains filtered or unexported fields
}
FormatterTypeMockFormatParams contains parameters of the formatterType.Format
type FormatterTypeMockFormatResults ¶ added in v3.3.14
type FormatterTypeMockFormatResults struct {
// contains filtered or unexported fields
}
FormatterTypeMockFormatResults contains results of the formatterType.Format
type GenericComplexUnionMock ¶ added in v3.1.2
type GenericComplexUnionMock[T complexUnion] struct { NameMock mGenericComplexUnionMockName[T] // contains filtered or unexported fields }
GenericComplexUnionMock implements genericComplexUnion
func NewGenericComplexUnionMock ¶ added in v3.1.2
func NewGenericComplexUnionMock[T complexUnion](t minimock.Tester) *GenericComplexUnionMock[T]
NewGenericComplexUnionMock returns a mock for genericComplexUnion
func (*GenericComplexUnionMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericComplexUnionMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericComplexUnionMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericComplexUnionMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericComplexUnionMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericComplexUnionMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericComplexUnionMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericComplexUnionMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericComplexUnionMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericComplexUnionMock[T]) Name(t1 T)
Name implements genericComplexUnion
func (*GenericComplexUnionMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericComplexUnionMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericComplexUnionMock.Name invocations
func (*GenericComplexUnionMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericComplexUnionMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericComplexUnionMock.Name invocations
type GenericComplexUnionMockNameExpectation ¶ added in v3.1.2
type GenericComplexUnionMockNameExpectation[T complexUnion] struct { Counter uint64 // contains filtered or unexported fields }
GenericComplexUnionMockNameExpectation specifies expectation struct of the genericComplexUnion.Name
type GenericComplexUnionMockNameExpectationOrigins ¶ added in v3.4.0
type GenericComplexUnionMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericComplexUnionMockNameOrigins contains origins of expectations of the genericComplexUnion.Name
type GenericComplexUnionMockNameParamPtrs ¶ added in v3.3.7
type GenericComplexUnionMockNameParamPtrs[T complexUnion] struct {
// contains filtered or unexported fields
}
GenericComplexUnionMockNameParamPtrs contains pointers to parameters of the genericComplexUnion.Name
type GenericComplexUnionMockNameParams ¶ added in v3.1.2
type GenericComplexUnionMockNameParams[T complexUnion] struct {
// contains filtered or unexported fields
}
GenericComplexUnionMockNameParams contains parameters of the genericComplexUnion.Name
type GenericInMock ¶ added in v3.1.2
type GenericInMock[T any] struct { NameMock mGenericInMockName[T] // contains filtered or unexported fields }
GenericInMock implements genericIn
func NewGenericInMock ¶ added in v3.1.2
func NewGenericInMock[T any](t minimock.Tester) *GenericInMock[T]
NewGenericInMock returns a mock for genericIn
func (*GenericInMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericInMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericInMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericInMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericInMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericInMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericInMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericInMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericInMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericInMock[T]) Name(t1 T)
Name implements genericIn
func (*GenericInMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericInMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericInMock.Name invocations
func (*GenericInMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericInMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericInMock.Name invocations
type GenericInMockNameExpectation ¶ added in v3.1.2
type GenericInMockNameExpectation[T any] struct { Counter uint64 // contains filtered or unexported fields }
GenericInMockNameExpectation specifies expectation struct of the genericIn.Name
type GenericInMockNameExpectationOrigins ¶ added in v3.4.0
type GenericInMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericInMockNameOrigins contains origins of expectations of the genericIn.Name
type GenericInMockNameParamPtrs ¶ added in v3.3.7
type GenericInMockNameParamPtrs[T any] struct { // contains filtered or unexported fields }
GenericInMockNameParamPtrs contains pointers to parameters of the genericIn.Name
type GenericInMockNameParams ¶ added in v3.1.2
type GenericInMockNameParams[T any] struct { // contains filtered or unexported fields }
GenericInMockNameParams contains parameters of the genericIn.Name
type GenericInlineUnionMock ¶ added in v3.1.2
type GenericInlineUnionMock[T int | float64] struct { NameMock mGenericInlineUnionMockName[T] // contains filtered or unexported fields }
GenericInlineUnionMock implements genericInlineUnion
func NewGenericInlineUnionMock ¶ added in v3.1.2
func NewGenericInlineUnionMock[T int | float64](t minimock.Tester) *GenericInlineUnionMock[T]
NewGenericInlineUnionMock returns a mock for genericInlineUnion
func (*GenericInlineUnionMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericInlineUnionMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericInlineUnionMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericInlineUnionMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericInlineUnionMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericInlineUnionMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericInlineUnionMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericInlineUnionMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericInlineUnionMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericInlineUnionMock[T]) Name(t1 T)
Name implements genericInlineUnion
func (*GenericInlineUnionMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericInlineUnionMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericInlineUnionMock.Name invocations
func (*GenericInlineUnionMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericInlineUnionMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericInlineUnionMock.Name invocations
type GenericInlineUnionMockNameExpectation ¶ added in v3.1.2
type GenericInlineUnionMockNameExpectation[T int | float64] struct { Counter uint64 // contains filtered or unexported fields }
GenericInlineUnionMockNameExpectation specifies expectation struct of the genericInlineUnion.Name
type GenericInlineUnionMockNameExpectationOrigins ¶ added in v3.4.0
type GenericInlineUnionMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericInlineUnionMockNameOrigins contains origins of expectations of the genericInlineUnion.Name
type GenericInlineUnionMockNameParamPtrs ¶ added in v3.3.7
type GenericInlineUnionMockNameParamPtrs[T int | float64] struct { // contains filtered or unexported fields }
GenericInlineUnionMockNameParamPtrs contains pointers to parameters of the genericInlineUnion.Name
type GenericInlineUnionMockNameParams ¶ added in v3.1.2
type GenericInlineUnionMockNameParams[T int | float64] struct { // contains filtered or unexported fields }
GenericInlineUnionMockNameParams contains parameters of the genericInlineUnion.Name
type GenericInlineUnionWithManyTypesMock ¶ added in v3.1.2
type GenericInlineUnionWithManyTypesMock[T int | float64 | string] struct { NameMock mGenericInlineUnionWithManyTypesMockName[T] // contains filtered or unexported fields }
GenericInlineUnionWithManyTypesMock implements genericInlineUnionWithManyTypes
func NewGenericInlineUnionWithManyTypesMock ¶ added in v3.1.2
func NewGenericInlineUnionWithManyTypesMock[T int | float64 | string](t minimock.Tester) *GenericInlineUnionWithManyTypesMock[T]
NewGenericInlineUnionWithManyTypesMock returns a mock for genericInlineUnionWithManyTypes
func (*GenericInlineUnionWithManyTypesMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericInlineUnionWithManyTypesMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericInlineUnionWithManyTypesMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericInlineUnionWithManyTypesMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericInlineUnionWithManyTypesMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericInlineUnionWithManyTypesMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericInlineUnionWithManyTypesMock[T]) Name(t1 T)
Name implements genericInlineUnionWithManyTypes
func (*GenericInlineUnionWithManyTypesMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericInlineUnionWithManyTypesMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericInlineUnionWithManyTypesMock.Name invocations
func (*GenericInlineUnionWithManyTypesMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericInlineUnionWithManyTypesMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericInlineUnionWithManyTypesMock.Name invocations
type GenericInlineUnionWithManyTypesMockNameExpectation ¶ added in v3.1.2
type GenericInlineUnionWithManyTypesMockNameExpectation[T int | float64 | string] struct { Counter uint64 // contains filtered or unexported fields }
GenericInlineUnionWithManyTypesMockNameExpectation specifies expectation struct of the genericInlineUnionWithManyTypes.Name
type GenericInlineUnionWithManyTypesMockNameExpectationOrigins ¶ added in v3.4.0
type GenericInlineUnionWithManyTypesMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericInlineUnionWithManyTypesMockNameOrigins contains origins of expectations of the genericInlineUnionWithManyTypes.Name
type GenericInlineUnionWithManyTypesMockNameParamPtrs ¶ added in v3.3.8
type GenericInlineUnionWithManyTypesMockNameParamPtrs[T int | float64 | string] struct { // contains filtered or unexported fields }
GenericInlineUnionWithManyTypesMockNameParamPtrs contains pointers to parameters of the genericInlineUnionWithManyTypes.Name
type GenericInlineUnionWithManyTypesMockNameParams ¶ added in v3.1.2
type GenericInlineUnionWithManyTypesMockNameParams[T int | float64 | string] struct { // contains filtered or unexported fields }
GenericInlineUnionWithManyTypesMockNameParams contains parameters of the genericInlineUnionWithManyTypes.Name
type GenericInoutMock ¶ added in v3.1.2
type GenericInoutMock[T any] struct { NameMock mGenericInoutMockName[T] // contains filtered or unexported fields }
GenericInoutMock implements genericInout
func NewGenericInoutMock ¶ added in v3.1.2
func NewGenericInoutMock[T any](t minimock.Tester) *GenericInoutMock[T]
NewGenericInoutMock returns a mock for genericInout
func (*GenericInoutMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericInoutMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericInoutMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericInoutMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericInoutMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericInoutMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericInoutMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericInoutMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericInoutMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericInoutMock[T]) Name(t1 T) (t2 T)
Name implements genericInout
func (*GenericInoutMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericInoutMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericInoutMock.Name invocations
func (*GenericInoutMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericInoutMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericInoutMock.Name invocations
type GenericInoutMockNameExpectation ¶ added in v3.1.2
type GenericInoutMockNameExpectation[T any] struct { Counter uint64 // contains filtered or unexported fields }
GenericInoutMockNameExpectation specifies expectation struct of the genericInout.Name
func (*GenericInoutMockNameExpectation[T]) Then ¶ added in v3.1.2
func (e *GenericInoutMockNameExpectation[T]) Then(t2 T) *GenericInoutMock[T]
Then sets up genericInout.Name return parameters for the expectation previously defined by the When method
type GenericInoutMockNameExpectationOrigins ¶ added in v3.4.0
type GenericInoutMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericInoutMockNameOrigins contains origins of expectations of the genericInout.Name
type GenericInoutMockNameParamPtrs ¶ added in v3.3.7
type GenericInoutMockNameParamPtrs[T any] struct { // contains filtered or unexported fields }
GenericInoutMockNameParamPtrs contains pointers to parameters of the genericInout.Name
type GenericInoutMockNameParams ¶ added in v3.1.2
type GenericInoutMockNameParams[T any] struct { // contains filtered or unexported fields }
GenericInoutMockNameParams contains parameters of the genericInout.Name
type GenericInoutMockNameResults ¶ added in v3.1.2
type GenericInoutMockNameResults[T any] struct { // contains filtered or unexported fields }
GenericInoutMockNameResults contains results of the genericInout.Name
type GenericMultipleTypesMock ¶ added in v3.1.3
type GenericMultipleTypesMock[T proto.Message, K any] struct { NameMock mGenericMultipleTypesMockName[T, K] // contains filtered or unexported fields }
GenericMultipleTypesMock implements genericMultipleTypes
func NewGenericMultipleTypesMock ¶ added in v3.1.3
func NewGenericMultipleTypesMock[T proto.Message, K any](t minimock.Tester) *GenericMultipleTypesMock[T, K]
NewGenericMultipleTypesMock returns a mock for genericMultipleTypes
func (*GenericMultipleTypesMock[T, K]) MinimockFinish ¶ added in v3.1.3
func (m *GenericMultipleTypesMock[T, K]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericMultipleTypesMock[T, K]) MinimockNameDone ¶ added in v3.1.3
func (m *GenericMultipleTypesMock[T, K]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericMultipleTypesMock[T, K]) MinimockNameInspect ¶ added in v3.1.3
func (m *GenericMultipleTypesMock[T, K]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericMultipleTypesMock[T, K]) MinimockWait ¶ added in v3.1.3
func (m *GenericMultipleTypesMock[T, K]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericMultipleTypesMock[T, K]) Name ¶ added in v3.1.3
func (mmName *GenericMultipleTypesMock[T, K]) Name(t1 T, k1 K)
Name implements genericMultipleTypes
func (*GenericMultipleTypesMock[T, K]) NameAfterCounter ¶ added in v3.1.3
func (mmName *GenericMultipleTypesMock[T, K]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericMultipleTypesMock.Name invocations
func (*GenericMultipleTypesMock[T, K]) NameBeforeCounter ¶ added in v3.1.3
func (mmName *GenericMultipleTypesMock[T, K]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericMultipleTypesMock.Name invocations
type GenericMultipleTypesMockNameExpectation ¶ added in v3.1.3
type GenericMultipleTypesMockNameExpectation[T proto.Message, K any] struct { Counter uint64 // contains filtered or unexported fields }
GenericMultipleTypesMockNameExpectation specifies expectation struct of the genericMultipleTypes.Name
type GenericMultipleTypesMockNameExpectationOrigins ¶ added in v3.4.0
type GenericMultipleTypesMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericMultipleTypesMockNameOrigins contains origins of expectations of the genericMultipleTypes.Name
type GenericMultipleTypesMockNameParamPtrs ¶ added in v3.3.8
type GenericMultipleTypesMockNameParamPtrs[T proto.Message, K any] struct { // contains filtered or unexported fields }
GenericMultipleTypesMockNameParamPtrs contains pointers to parameters of the genericMultipleTypes.Name
type GenericMultipleTypesMockNameParams ¶ added in v3.1.3
type GenericMultipleTypesMockNameParams[T proto.Message, K any] struct { // contains filtered or unexported fields }
GenericMultipleTypesMockNameParams contains parameters of the genericMultipleTypes.Name
type GenericOutMock ¶ added in v3.1.2
type GenericOutMock[T any] struct { NameMock mGenericOutMockName[T] // contains filtered or unexported fields }
GenericOutMock implements genericOut
func NewGenericOutMock ¶ added in v3.1.2
func NewGenericOutMock[T any](t minimock.Tester) *GenericOutMock[T]
NewGenericOutMock returns a mock for genericOut
func (*GenericOutMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericOutMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericOutMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericOutMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericOutMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericOutMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericOutMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericOutMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericOutMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericOutMock[T]) Name() (t1 T)
Name implements genericOut
func (*GenericOutMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericOutMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericOutMock.Name invocations
func (*GenericOutMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericOutMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericOutMock.Name invocations
type GenericOutMockNameExpectation ¶ added in v3.1.2
type GenericOutMockNameExpectation[T any] struct { Counter uint64 // contains filtered or unexported fields }
GenericOutMockNameExpectation specifies expectation struct of the genericOut.Name
type GenericOutMockNameResults ¶ added in v3.1.2
type GenericOutMockNameResults[T any] struct { // contains filtered or unexported fields }
GenericOutMockNameResults contains results of the genericOut.Name
type GenericSimpleUnionMock ¶ added in v3.1.2
type GenericSimpleUnionMock[T simpleUnion] struct { NameMock mGenericSimpleUnionMockName[T] // contains filtered or unexported fields }
GenericSimpleUnionMock implements genericSimpleUnion
func NewGenericSimpleUnionMock ¶ added in v3.1.2
func NewGenericSimpleUnionMock[T simpleUnion](t minimock.Tester) *GenericSimpleUnionMock[T]
NewGenericSimpleUnionMock returns a mock for genericSimpleUnion
func (*GenericSimpleUnionMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericSimpleUnionMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericSimpleUnionMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericSimpleUnionMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericSimpleUnionMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericSimpleUnionMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericSimpleUnionMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericSimpleUnionMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericSimpleUnionMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericSimpleUnionMock[T]) Name(t1 T)
Name implements genericSimpleUnion
func (*GenericSimpleUnionMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericSimpleUnionMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericSimpleUnionMock.Name invocations
func (*GenericSimpleUnionMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericSimpleUnionMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericSimpleUnionMock.Name invocations
type GenericSimpleUnionMockNameExpectation ¶ added in v3.1.2
type GenericSimpleUnionMockNameExpectation[T simpleUnion] struct { Counter uint64 // contains filtered or unexported fields }
GenericSimpleUnionMockNameExpectation specifies expectation struct of the genericSimpleUnion.Name
type GenericSimpleUnionMockNameExpectationOrigins ¶ added in v3.4.0
type GenericSimpleUnionMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericSimpleUnionMockNameOrigins contains origins of expectations of the genericSimpleUnion.Name
type GenericSimpleUnionMockNameParamPtrs ¶ added in v3.3.7
type GenericSimpleUnionMockNameParamPtrs[T simpleUnion] struct {
// contains filtered or unexported fields
}
GenericSimpleUnionMockNameParamPtrs contains pointers to parameters of the genericSimpleUnion.Name
type GenericSimpleUnionMockNameParams ¶ added in v3.1.2
type GenericSimpleUnionMockNameParams[T simpleUnion] struct {
// contains filtered or unexported fields
}
GenericSimpleUnionMockNameParams contains parameters of the genericSimpleUnion.Name
type GenericSpecificMock ¶ added in v3.1.2
type GenericSpecificMock[T proto.Message] struct { NameMock mGenericSpecificMockName[T] // contains filtered or unexported fields }
GenericSpecificMock implements genericSpecific
func NewGenericSpecificMock ¶ added in v3.1.2
func NewGenericSpecificMock[T proto.Message](t minimock.Tester) *GenericSpecificMock[T]
NewGenericSpecificMock returns a mock for genericSpecific
func (*GenericSpecificMock[T]) MinimockFinish ¶ added in v3.1.2
func (m *GenericSpecificMock[T]) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GenericSpecificMock[T]) MinimockNameDone ¶ added in v3.1.2
func (m *GenericSpecificMock[T]) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*GenericSpecificMock[T]) MinimockNameInspect ¶ added in v3.1.2
func (m *GenericSpecificMock[T]) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*GenericSpecificMock[T]) MinimockWait ¶ added in v3.1.2
func (m *GenericSpecificMock[T]) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GenericSpecificMock[T]) Name ¶ added in v3.1.2
func (mmName *GenericSpecificMock[T]) Name(t1 T)
Name implements genericSpecific
func (*GenericSpecificMock[T]) NameAfterCounter ¶ added in v3.1.2
func (mmName *GenericSpecificMock[T]) NameAfterCounter() uint64
NameAfterCounter returns a count of finished GenericSpecificMock.Name invocations
func (*GenericSpecificMock[T]) NameBeforeCounter ¶ added in v3.1.2
func (mmName *GenericSpecificMock[T]) NameBeforeCounter() uint64
NameBeforeCounter returns a count of GenericSpecificMock.Name invocations
type GenericSpecificMockNameExpectation ¶ added in v3.1.2
type GenericSpecificMockNameExpectation[T proto.Message] struct { Counter uint64 // contains filtered or unexported fields }
GenericSpecificMockNameExpectation specifies expectation struct of the genericSpecific.Name
type GenericSpecificMockNameExpectationOrigins ¶ added in v3.4.0
type GenericSpecificMockNameExpectationOrigins struct {
// contains filtered or unexported fields
}
GenericSpecificMockNameOrigins contains origins of expectations of the genericSpecific.Name
type GenericSpecificMockNameParamPtrs ¶ added in v3.3.7
type GenericSpecificMockNameParamPtrs[T proto.Message] struct { // contains filtered or unexported fields }
GenericSpecificMockNameParamPtrs contains pointers to parameters of the genericSpecific.Name
type GenericSpecificMockNameParams ¶ added in v3.1.2
type GenericSpecificMockNameParams[T proto.Message] struct { // contains filtered or unexported fields }
GenericSpecificMockNameParams contains parameters of the genericSpecific.Name
type ReaderMock ¶ added in v3.3.14
type ReaderMock struct { ReadMock mReaderMockRead // contains filtered or unexported fields }
ReaderMock implements reader
func NewReaderMock ¶ added in v3.3.14
func NewReaderMock(t minimock.Tester) *ReaderMock
NewReaderMock returns a mock for reader
func (*ReaderMock) MinimockFinish ¶ added in v3.3.14
func (m *ReaderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ReaderMock) MinimockReadDone ¶ added in v3.3.14
func (m *ReaderMock) MinimockReadDone() bool
MinimockReadDone returns true if the count of the Read invocations corresponds the number of defined expectations
func (*ReaderMock) MinimockReadInspect ¶ added in v3.3.14
func (m *ReaderMock) MinimockReadInspect()
MinimockReadInspect logs each unmet expectation
func (*ReaderMock) MinimockWait ¶ added in v3.3.14
func (m *ReaderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*ReaderMock) Read ¶ added in v3.3.14
func (mmRead *ReaderMock) Read(p []byte) (n int, err error)
Read implements reader
func (*ReaderMock) ReadAfterCounter ¶ added in v3.3.14
func (mmRead *ReaderMock) ReadAfterCounter() uint64
ReadAfterCounter returns a count of finished ReaderMock.Read invocations
func (*ReaderMock) ReadBeforeCounter ¶ added in v3.3.14
func (mmRead *ReaderMock) ReadBeforeCounter() uint64
ReadBeforeCounter returns a count of ReaderMock.Read invocations
type ReaderMockReadExpectation ¶ added in v3.3.14
type ReaderMockReadExpectation struct { Counter uint64 // contains filtered or unexported fields }
ReaderMockReadExpectation specifies expectation struct of the reader.Read
func (*ReaderMockReadExpectation) Then ¶ added in v3.3.14
func (e *ReaderMockReadExpectation) Then(n int, err error) *ReaderMock
Then sets up reader.Read return parameters for the expectation previously defined by the When method
type ReaderMockReadExpectationOrigins ¶ added in v3.4.0
type ReaderMockReadExpectationOrigins struct {
// contains filtered or unexported fields
}
ReaderMockReadOrigins contains origins of expectations of the reader.Read
type ReaderMockReadParamPtrs ¶ added in v3.3.14
type ReaderMockReadParamPtrs struct {
// contains filtered or unexported fields
}
ReaderMockReadParamPtrs contains pointers to parameters of the reader.Read
type ReaderMockReadParams ¶ added in v3.3.14
type ReaderMockReadParams struct {
// contains filtered or unexported fields
}
ReaderMockReadParams contains parameters of the reader.Read
type ReaderMockReadResults ¶ added in v3.3.14
type ReaderMockReadResults struct {
// contains filtered or unexported fields
}
ReaderMockReadResults contains results of the reader.Read
Source Files ¶
- actor_mock.go
- context_accepter_mock.go
- formatter_alias_mock.go
- formatter_mock.go
- formatter_type_mock.go
- formatter_with_custom_name_mock.go
- generic_complex_union.go
- generic_in.go
- generic_inline_union.go
- generic_inline_with_many_options.go
- generic_inout.go
- generic_multiple_args_with_different_types.go
- generic_out.go
- generic_simple_union.go
- generic_specific.go
- reader_mock.go
- types.go