mocks

package
v0.0.0-...-9585d8b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Storage) CreateNewPersonalMessageV1

func (_m *Storage) CreateNewPersonalMessageV1(ctx context.Context, sender string, data *models.NewPersonalMessageV1) (int64, int64, error)

CreateNewPersonalMessageV1 provides a mock function with given fields: ctx, sender, data

func (*Storage) DeleteMessageData

func (_m *Storage) DeleteMessageData(ctx context.Context, id int64, timestamp int64) (int64, error)

DeleteMessageData provides a mock function with given fields: ctx, id, timestamp

func (*Storage) EditMessageText

func (_m *Storage) EditMessageText(ctx context.Context, id int64, timestamp int64, text string) (int64, error)

EditMessageText provides a mock function with given fields: ctx, id, timestamp, text

func (*Storage) MessageUpdatesV1

func (_m *Storage) MessageUpdatesV1(ctx context.Context, userId string, after int64, limit int) (*models.MessageUpdatesV1, error)

MessageUpdatesV1 provides a mock function with given fields: ctx, userId, after, limit

func (*Storage) PersonalMessageV1

func (_m *Storage) PersonalMessageV1(ctx context.Context, userId string, messageId int64) (*models.PersonalMessageV1, error)

PersonalMessageV1 provides a mock function with given fields: ctx, userId, messageId

func (*Storage) SetMessageReadState

func (_m *Storage) SetMessageReadState(ctx context.Context, id int64, timestamp int64, read bool) (int64, error)

SetMessageReadState provides a mock function with given fields: ctx, id, timestamp, read

Jump to

Keyboard shortcuts

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