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 Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t mockConstructorTestingTNewService) *Service

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

func (*Service) User

func (_m *Service) User() service.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) AuthViaBot

func (_m *User) AuthViaBot(ctx context.Context, user *tg.User, opts *service.AuthSignUpOpts) (*domain.User, error)

AuthViaBot provides a mock function with given fields: ctx, user, opts

func (*User) Restart

func (_m *User) Restart(ctx context.Context, user *domain.User) error

Restart provides a mock function with given fields: ctx, user

func (*User) SetUserLanguage

func (_m *User) SetUserLanguage(ctx context.Context, user *domain.User, lang string) (bool, error)

SetUserLanguage provides a mock function with given fields: ctx, user, lang

func (*User) Stop

func (_m *User) Stop(ctx context.Context, user *domain.User) error

Stop provides a mock function with given fields: ctx, user

Jump to

Keyboard shortcuts

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