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 {
	CreateMock mRepositoryMockCreate

	GetMock mRepositoryMockGet

	GetListMock mRepositoryMockGetList

	GetSpeakerStatByTopicMock mRepositoryMockGetSpeakerStatByTopic

	UpdateMock mRepositoryMockUpdate
	// contains filtered or unexported fields
}

RepositoryMock implements meeting_repository.Repository

func NewRepositoryMock

func NewRepositoryMock(t minimock.Tester) *RepositoryMock

NewRepositoryMock returns a mock for meeting_repository.Repository

func (*RepositoryMock) Create

func (mmCreate *RepositoryMock) Create(ctx context.Context, meeting *model.Meeting) (i1 int64, err error)

Create implements meeting_repository.Repository

func (*RepositoryMock) CreateAfterCounter

func (mmCreate *RepositoryMock) CreateAfterCounter() uint64

CreateAfterCounter returns a count of finished RepositoryMock.Create invocations

func (*RepositoryMock) CreateBeforeCounter

func (mmCreate *RepositoryMock) CreateBeforeCounter() uint64

CreateBeforeCounter returns a count of RepositoryMock.Create invocations

func (*RepositoryMock) Get

func (mmGet *RepositoryMock) Get(ctx context.Context, id int64) (mp1 *model.Meeting, err error)

Get implements meeting_repository.Repository

func (*RepositoryMock) GetAfterCounter

func (mmGet *RepositoryMock) GetAfterCounter() uint64

GetAfterCounter returns a count of finished RepositoryMock.Get invocations

func (*RepositoryMock) GetBeforeCounter

func (mmGet *RepositoryMock) GetBeforeCounter() uint64

GetBeforeCounter returns a count of RepositoryMock.Get invocations

func (*RepositoryMock) GetList

func (mmGetList *RepositoryMock) GetList(ctx context.Context, filter *mm_meeting_repository.Query) (mpa1 []*model.Meeting, err error)

GetList implements meeting_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) GetSpeakerStatByTopic

func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopic(ctx context.Context, unitID int64, topicID int64, speakerID int64) (i1 int64, err error)

GetSpeakerStatByTopic implements meeting_repository.Repository

func (*RepositoryMock) GetSpeakerStatByTopicAfterCounter

func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopicAfterCounter() uint64

GetSpeakerStatByTopicAfterCounter returns a count of finished RepositoryMock.GetSpeakerStatByTopic invocations

func (*RepositoryMock) GetSpeakerStatByTopicBeforeCounter

func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopicBeforeCounter() uint64

GetSpeakerStatByTopicBeforeCounter returns a count of RepositoryMock.GetSpeakerStatByTopic invocations

func (*RepositoryMock) MinimockCreateDone

func (m *RepositoryMock) MinimockCreateDone() bool

MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations

func (*RepositoryMock) MinimockCreateInspect

func (m *RepositoryMock) MinimockCreateInspect()

MinimockCreateInspect logs each unmet expectation

func (*RepositoryMock) MinimockFinish

func (m *RepositoryMock) MinimockFinish()

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

func (*RepositoryMock) MinimockGetDone

func (m *RepositoryMock) MinimockGetDone() bool

MinimockGetDone returns true if the count of the Get invocations corresponds the number of defined expectations

func (*RepositoryMock) MinimockGetInspect

func (m *RepositoryMock) MinimockGetInspect()

MinimockGetInspect logs each unmet expectation

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

func (m *RepositoryMock) MinimockGetSpeakerStatByTopicDone() bool

MinimockGetSpeakerStatByTopicDone returns true if the count of the GetSpeakerStatByTopic invocations corresponds the number of defined expectations

func (*RepositoryMock) MinimockGetSpeakerStatByTopicInspect

func (m *RepositoryMock) MinimockGetSpeakerStatByTopicInspect()

MinimockGetSpeakerStatByTopicInspect logs each unmet expectation

func (*RepositoryMock) MinimockUpdateDone

func (m *RepositoryMock) MinimockUpdateDone() bool

MinimockUpdateDone returns true if the count of the Update invocations corresponds the number of defined expectations

func (*RepositoryMock) MinimockUpdateInspect

func (m *RepositoryMock) MinimockUpdateInspect()

MinimockUpdateInspect 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

func (*RepositoryMock) Update

func (mmUpdate *RepositoryMock) Update(ctx context.Context, ids []int64, updateMeeting *model.UpdateMeeting) (err error)

Update implements meeting_repository.Repository

func (*RepositoryMock) UpdateAfterCounter

func (mmUpdate *RepositoryMock) UpdateAfterCounter() uint64

UpdateAfterCounter returns a count of finished RepositoryMock.Update invocations

func (*RepositoryMock) UpdateBeforeCounter

func (mmUpdate *RepositoryMock) UpdateBeforeCounter() uint64

UpdateBeforeCounter returns a count of RepositoryMock.Update invocations

type RepositoryMockCreateExpectation

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

RepositoryMockCreateExpectation specifies expectation struct of the Repository.Create

func (*RepositoryMockCreateExpectation) Then

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

type RepositoryMockCreateParams

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

RepositoryMockCreateParams contains parameters of the Repository.Create

type RepositoryMockCreateResults

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

RepositoryMockCreateResults contains results of the Repository.Create

type RepositoryMockGetExpectation

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

RepositoryMockGetExpectation specifies expectation struct of the Repository.Get

func (*RepositoryMockGetExpectation) Then

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

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

type RepositoryMockGetParams

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

RepositoryMockGetParams contains parameters of the Repository.Get

type RepositoryMockGetResults

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

RepositoryMockGetResults contains results of the Repository.Get

type RepositoryMockGetSpeakerStatByTopicExpectation

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

RepositoryMockGetSpeakerStatByTopicExpectation specifies expectation struct of the Repository.GetSpeakerStatByTopic

func (*RepositoryMockGetSpeakerStatByTopicExpectation) Then

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

type RepositoryMockGetSpeakerStatByTopicParams

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

RepositoryMockGetSpeakerStatByTopicParams contains parameters of the Repository.GetSpeakerStatByTopic

type RepositoryMockGetSpeakerStatByTopicResults

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

RepositoryMockGetSpeakerStatByTopicResults contains results of the Repository.GetSpeakerStatByTopic

type RepositoryMockUpdateExpectation

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

RepositoryMockUpdateExpectation specifies expectation struct of the Repository.Update

func (*RepositoryMockUpdateExpectation) Then

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

type RepositoryMockUpdateParams

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

RepositoryMockUpdateParams contains parameters of the Repository.Update

type RepositoryMockUpdateResults

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

RepositoryMockUpdateResults contains results of the Repository.Update

Jump to

Keyboard shortcuts

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