mocks

package
v0.0.0-...-d904837 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t mockConstructorTestingTNewStore) *Store

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

func (*Store) Migrator

func (_m *Store) Migrator() store.Migrator

Migrator provides a mock function with given fields:

func (*Store) Tx

func (_m *Store) Tx(ctx context.Context, txFunc store.TxFunc) error

Tx provides a mock function with given fields: ctx, txFunc

func (*Store) User

func (_m *Store) User() store.User

User provides a mock function with given fields:

type User

type User struct {
	mock.Mock
}

User is an autogenerated mock type for the User type

func NewUser

func NewUser(t mockConstructorTestingTNewUser) *User

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

func (*User) Add

func (_m *User) Add(ctx context.Context, v *domain.User) error

Add provides a mock function with given fields: ctx, v

func (*User) Query

func (_m *User) Query() store.UserQuery

Query provides a mock function with given fields:

func (*User) Update

func (_m *User) Update(ctx context.Context, v *domain.User, fields ...string) error

Update provides a mock function with given fields: ctx, v, fields

type UserQuery

type UserQuery struct {
	mock.Mock
}

UserQuery is an autogenerated mock type for the UserQuery type

func NewUserQuery

func NewUserQuery(t mockConstructorTestingTNewUserQuery) *UserQuery

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

func (*UserQuery) All

func (_m *UserQuery) All(ctx context.Context) ([]*domain.User, error)

All provides a mock function with given fields: ctx

func (*UserQuery) Count

func (_m *UserQuery) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*UserQuery) Delete

func (_m *UserQuery) Delete(ctx context.Context) error

Delete provides a mock function with given fields: ctx

func (*UserQuery) ID

func (_m *UserQuery) ID(ids ...domain.UserID) store.UserQuery

ID provides a mock function with given fields: ids

func (*UserQuery) One

func (_m *UserQuery) One(ctx context.Context) (*domain.User, error)

One provides a mock function with given fields: ctx

func (*UserQuery) TelegramID

func (_m *UserQuery) TelegramID(ids ...tg.UserID) store.UserQuery

TelegramID provides a mock function with given fields: ids

Jump to

Keyboard shortcuts

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