mocks

package
v0.0.0-...-bf79d3d Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	mock.Mock
}

AuthService is an autogenerated mock type for the AuthService type

func NewAuthService

func NewAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthService

NewAuthService creates a new instance of AuthService. 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 (*AuthService) Login

func (_m *AuthService) Login(ctx context.Context, username string, password string) (null.String, null.String, error)

Login provides a mock function with given fields: ctx, username, password

func (*AuthService) Logout

func (_m *AuthService) Logout(ctx context.Context, refreshToken string) error

Logout provides a mock function with given fields: ctx, refreshToken

func (*AuthService) RefreshToken

func (_m *AuthService) RefreshToken(ctx context.Context, refreshToken string) (null.String, null.String, error)

RefreshToken provides a mock function with given fields: ctx, refreshToken

type BooksService

type BooksService struct {
	mock.Mock
}

BooksService is an autogenerated mock type for the BooksService type

func NewBooksService

func NewBooksService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BooksService

NewBooksService creates a new instance of BooksService. 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 (*BooksService) CreateBook

func (_m *BooksService) CreateBook(ctx context.Context, title string, author string) (*models.Book, error)

CreateBook provides a mock function with given fields: ctx, title, author

func (*BooksService) DeleteBookById

func (_m *BooksService) DeleteBookById(ctx context.Context, id string) error

DeleteBookById provides a mock function with given fields: ctx, id

func (*BooksService) GetBookById

func (_m *BooksService) GetBookById(ctx context.Context, id string) (*models.Book, error)

GetBookById provides a mock function with given fields: ctx, id

type TokensService

type TokensService struct {
	mock.Mock
}

TokensService is an autogenerated mock type for the TokensService type

func NewTokensService

func NewTokensService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokensService

NewTokensService creates a new instance of TokensService. 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 (*TokensService) CheckToken

func (_m *TokensService) CheckToken(ctx context.Context, tokenString string) (uuid.UUID, bool, error)

CheckToken provides a mock function with given fields: ctx, tokenString

func (*TokensService) CreateNewTokens

func (_m *TokensService) CreateNewTokens(ctx context.Context, userId uuid.UUID) (null.String, null.String, error)

CreateNewTokens provides a mock function with given fields: ctx, userId

Jump to

Keyboard shortcuts

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