mocks

package
v0.0.0-...-4602fbc Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageRepository

type MessageRepository struct {
	mock.Mock
}

MessageRepository is an autogenerated mock type for the MessageRepository type

func NewMessageRepository

func NewMessageRepository(t mockConstructorTestingTNewMessageRepository) *MessageRepository

NewMessageRepository creates a new instance of MessageRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MessageRepository) CheckCursorExistence

func (_m *MessageRepository) CheckCursorExistence(cursor int64) error

CheckCursorExistence provides a mock function with given fields: cursor

func (*MessageRepository) Pull

func (_m *MessageRepository) Pull(req *models.Request) ([]*models.Message, int64, error)

Pull provides a mock function with given fields: req

func (*MessageRepository) Save

func (_m *MessageRepository) Save(message *models.Message) error

Save provides a mock function with given fields: message

Jump to

Keyboard shortcuts

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