mocks

package
v0.0.0-...-93f7374 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryMock

type RepositoryMock struct {
	GetListMock mRepositoryMockGetList
	// contains filtered or unexported fields
}

RepositoryMock implements topic_repository.Repository

func NewRepositoryMock

func NewRepositoryMock(t minimock.Tester) *RepositoryMock

NewRepositoryMock returns a mock for topic_repository.Repository

func (*RepositoryMock) GetList

func (mmGetList *RepositoryMock) GetList(ctx context.Context, filter *mm_topic_repository.Query) (tpa1 []*model.Topic, err error)

GetList implements topic_repository.Repository

func (*RepositoryMock) GetListAfterCounter

func (mmGetList *RepositoryMock) GetListAfterCounter() uint64

GetListAfterCounter returns a count of finished RepositoryMock.GetList invocations

func (*RepositoryMock) GetListBeforeCounter

func (mmGetList *RepositoryMock) GetListBeforeCounter() uint64

GetListBeforeCounter returns a count of RepositoryMock.GetList invocations

func (*RepositoryMock) MinimockFinish

func (m *RepositoryMock) MinimockFinish()

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

func (*RepositoryMock) MinimockGetListDone

func (m *RepositoryMock) MinimockGetListDone() bool

MinimockGetListDone returns true if the count of the GetList invocations corresponds the number of defined expectations

func (*RepositoryMock) MinimockGetListInspect

func (m *RepositoryMock) MinimockGetListInspect()

MinimockGetListInspect logs each unmet expectation

func (*RepositoryMock) MinimockWait

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

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

type RepositoryMockGetListExpectation

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

RepositoryMockGetListExpectation specifies expectation struct of the Repository.GetList

func (*RepositoryMockGetListExpectation) Then

Then sets up Repository.GetList return parameters for the expectation previously defined by the When method

type RepositoryMockGetListParams

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

RepositoryMockGetListParams contains parameters of the Repository.GetList

type RepositoryMockGetListResults

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

RepositoryMockGetListResults contains results of the Repository.GetList

Jump to

Keyboard shortcuts

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