tests

package
v3.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tests contains tests for minimock tool and demonstrates minimock features

Index

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) Action added in v3.3.7

func (mmAction *ActorMock) Action(firstParam string, secondParam int) (i1 int, err error)

Action implements actor

func (*ActorMock) ActionAfterCounter added in v3.3.7

func (mmAction *ActorMock) ActionAfterCounter() uint64

ActionAfterCounter returns a count of finished ActorMock.Action invocations

func (*ActorMock) ActionBeforeCounter added in v3.3.7

func (mmAction *ActorMock) ActionBeforeCounter() uint64

ActionBeforeCounter returns a count of ActorMock.Action invocations

func (*ActorMock) MinimockActionDone added in v3.3.7

func (m *ActorMock) MinimockActionDone() bool

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

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

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

func (*ActorMockActionExpectation) Then added in v3.3.7

func (e *ActorMockActionExpectation) Then(i1 int, err error) *ActorMock

Then sets up actor.Action return parameters for the expectation previously defined by the When method

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
	// 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) 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) 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 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

Then sets up contextAccepter.AcceptContextWithOtherArgs return parameters for the expectation previously defined by the When method

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 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

Then sets up Formatter.Format return parameters for the expectation previously defined by the When method

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 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

Then sets up Formatter.Format return parameters for the expectation previously defined by the When method

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 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 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 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 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 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

Then sets up genericInout.Name return parameters for the expectation previously defined by the When method

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 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 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 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

Jump to

Keyboard shortcuts

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