mocks

package
v0.0.0-...-33e7104 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatServiceMock

type ChatServiceMock struct {
	CreateMock mChatServiceMockCreate

	DeleteMock mChatServiceMockDelete
	// contains filtered or unexported fields
}

ChatServiceMock implements service.ChatService

func NewChatServiceMock

func NewChatServiceMock(t minimock.Tester) *ChatServiceMock

NewChatServiceMock returns a mock for service.ChatService

func (*ChatServiceMock) Create

func (mmCreate *ChatServiceMock) Create(ctx context.Context, c2 model.ChatDTO) (i1 int64, err error)

Create implements service.ChatService

func (*ChatServiceMock) CreateAfterCounter

func (mmCreate *ChatServiceMock) CreateAfterCounter() uint64

CreateAfterCounter returns a count of finished ChatServiceMock.Create invocations

func (*ChatServiceMock) CreateBeforeCounter

func (mmCreate *ChatServiceMock) CreateBeforeCounter() uint64

CreateBeforeCounter returns a count of ChatServiceMock.Create invocations

func (*ChatServiceMock) Delete

func (mmDelete *ChatServiceMock) Delete(ctx context.Context, i1 int64) (err error)

Delete implements service.ChatService

func (*ChatServiceMock) DeleteAfterCounter

func (mmDelete *ChatServiceMock) DeleteAfterCounter() uint64

DeleteAfterCounter returns a count of finished ChatServiceMock.Delete invocations

func (*ChatServiceMock) DeleteBeforeCounter

func (mmDelete *ChatServiceMock) DeleteBeforeCounter() uint64

DeleteBeforeCounter returns a count of ChatServiceMock.Delete invocations

func (*ChatServiceMock) MinimockCreateDone

func (m *ChatServiceMock) MinimockCreateDone() bool

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

func (*ChatServiceMock) MinimockCreateInspect

func (m *ChatServiceMock) MinimockCreateInspect()

MinimockCreateInspect logs each unmet expectation

func (*ChatServiceMock) MinimockDeleteDone

func (m *ChatServiceMock) MinimockDeleteDone() bool

MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations

func (*ChatServiceMock) MinimockDeleteInspect

func (m *ChatServiceMock) MinimockDeleteInspect()

MinimockDeleteInspect logs each unmet expectation

func (*ChatServiceMock) MinimockFinish

func (m *ChatServiceMock) MinimockFinish()

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

func (*ChatServiceMock) MinimockWait

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

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

type ChatServiceMockCreateExpectation

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

ChatServiceMockCreateExpectation specifies expectation struct of the ChatService.Create

func (*ChatServiceMockCreateExpectation) Then

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

type ChatServiceMockCreateParams

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

ChatServiceMockCreateParams contains parameters of the ChatService.Create

type ChatServiceMockCreateResults

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

ChatServiceMockCreateResults contains results of the ChatService.Create

type ChatServiceMockDeleteExpectation

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

ChatServiceMockDeleteExpectation specifies expectation struct of the ChatService.Delete

func (*ChatServiceMockDeleteExpectation) Then

Then sets up ChatService.Delete return parameters for the expectation previously defined by the When method

type ChatServiceMockDeleteParams

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

ChatServiceMockDeleteParams contains parameters of the ChatService.Delete

type ChatServiceMockDeleteResults

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

ChatServiceMockDeleteResults contains results of the ChatService.Delete

type MessageServiceMock

type MessageServiceMock struct {
	SendMessageMock mMessageServiceMockSendMessage
	// contains filtered or unexported fields
}

MessageServiceMock implements service.MessageService

func NewMessageServiceMock

func NewMessageServiceMock(t minimock.Tester) *MessageServiceMock

NewMessageServiceMock returns a mock for service.MessageService

func (*MessageServiceMock) MinimockFinish

func (m *MessageServiceMock) MinimockFinish()

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

func (*MessageServiceMock) MinimockSendMessageDone

func (m *MessageServiceMock) MinimockSendMessageDone() bool

MinimockSendMessageDone returns true if the count of the SendMessage invocations corresponds the number of defined expectations

func (*MessageServiceMock) MinimockSendMessageInspect

func (m *MessageServiceMock) MinimockSendMessageInspect()

MinimockSendMessageInspect logs each unmet expectation

func (*MessageServiceMock) MinimockWait

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

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

func (*MessageServiceMock) SendMessage

func (mmSendMessage *MessageServiceMock) SendMessage(ctx context.Context, m1 model.MessageDTO) (err error)

SendMessage implements service.MessageService

func (*MessageServiceMock) SendMessageAfterCounter

func (mmSendMessage *MessageServiceMock) SendMessageAfterCounter() uint64

SendMessageAfterCounter returns a count of finished MessageServiceMock.SendMessage invocations

func (*MessageServiceMock) SendMessageBeforeCounter

func (mmSendMessage *MessageServiceMock) SendMessageBeforeCounter() uint64

SendMessageBeforeCounter returns a count of MessageServiceMock.SendMessage invocations

type MessageServiceMockSendMessageExpectation

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

MessageServiceMockSendMessageExpectation specifies expectation struct of the MessageService.SendMessage

func (*MessageServiceMockSendMessageExpectation) Then

Then sets up MessageService.SendMessage return parameters for the expectation previously defined by the When method

type MessageServiceMockSendMessageParams

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

MessageServiceMockSendMessageParams contains parameters of the MessageService.SendMessage

type MessageServiceMockSendMessageResults

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

MessageServiceMockSendMessageResults contains results of the MessageService.SendMessage

Jump to

Keyboard shortcuts

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