mocks

package
v0.0.0-...-5ee6a2d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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 LoginUsecase

type LoginUsecase struct {
	mock.Mock
}

LoginUsecase is an autogenerated mock type for the LoginUsecase type

func NewLoginUsecase

func NewLoginUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *LoginUsecase

NewLoginUsecase creates a new instance of LoginUsecase. 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 (*LoginUsecase) CreateAccessToken

func (_m *LoginUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)

CreateAccessToken provides a mock function with given fields: user, secret, expiry

func (*LoginUsecase) CreateRefreshToken

func (_m *LoginUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)

CreateRefreshToken provides a mock function with given fields: user, secret, expiry

func (*LoginUsecase) GetUserByEmail

func (_m *LoginUsecase) GetUserByEmail(c context.Context, email string) (domain.User, error)

GetUserByEmail provides a mock function with given fields: c, email

type ProfileUsecase

type ProfileUsecase struct {
	mock.Mock
}

ProfileUsecase is an autogenerated mock type for the ProfileUsecase type

func NewProfileUsecase

func NewProfileUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProfileUsecase

NewProfileUsecase creates a new instance of ProfileUsecase. 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 (*ProfileUsecase) GetProfileByID

func (_m *ProfileUsecase) GetProfileByID(c context.Context, userID string) (*domain.Profile, error)

GetProfileByID provides a mock function with given fields: c, userID

type RefreshTokenUsecase

type RefreshTokenUsecase struct {
	mock.Mock
}

RefreshTokenUsecase is an autogenerated mock type for the RefreshTokenUsecase type

func NewRefreshTokenUsecase

func NewRefreshTokenUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *RefreshTokenUsecase

NewRefreshTokenUsecase creates a new instance of RefreshTokenUsecase. 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 (*RefreshTokenUsecase) CreateAccessToken

func (_m *RefreshTokenUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)

CreateAccessToken provides a mock function with given fields: user, secret, expiry

func (*RefreshTokenUsecase) CreateRefreshToken

func (_m *RefreshTokenUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)

CreateRefreshToken provides a mock function with given fields: user, secret, expiry

func (*RefreshTokenUsecase) ExtractIDFromToken

func (_m *RefreshTokenUsecase) ExtractIDFromToken(requestToken string, secret string) (string, error)

ExtractIDFromToken provides a mock function with given fields: requestToken, secret

func (*RefreshTokenUsecase) GetUserByID

func (_m *RefreshTokenUsecase) GetUserByID(c context.Context, id string) (domain.User, error)

GetUserByID provides a mock function with given fields: c, id

type SignupUsecase

type SignupUsecase struct {
	mock.Mock
}

SignupUsecase is an autogenerated mock type for the SignupUsecase type

func NewSignupUsecase

func NewSignupUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *SignupUsecase

NewSignupUsecase creates a new instance of SignupUsecase. 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 (*SignupUsecase) Create

func (_m *SignupUsecase) Create(c context.Context, user *domain.User) error

Create provides a mock function with given fields: c, user

func (*SignupUsecase) CreateAccessToken

func (_m *SignupUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)

CreateAccessToken provides a mock function with given fields: user, secret, expiry

func (*SignupUsecase) CreateRefreshToken

func (_m *SignupUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)

CreateRefreshToken provides a mock function with given fields: user, secret, expiry

func (*SignupUsecase) GetUserByEmail

func (_m *SignupUsecase) GetUserByEmail(c context.Context, email string) (domain.User, error)

GetUserByEmail provides a mock function with given fields: c, email

type TagRepository

type TagRepository struct {
	mock.Mock
}

TagRepository is an autogenerated mock type for the TagRepository type

func NewTagRepository

func NewTagRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TagRepository

NewTagRepository creates a new instance of TagRepository. 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 (*TagRepository) Create

func (_m *TagRepository) Create(c context.Context, tag domain.Tag) error

Create provides a mock function with given fields: c, tag

func (*TagRepository) Delete

func (_m *TagRepository) Delete(c context.Context, tagID uint64) error

Delete provides a mock function with given fields: c, tagID

func (*TagRepository) Fetch

Fetch provides a mock function with given fields: c, r

func (*TagRepository) FetchAll

func (_m *TagRepository) FetchAll(c context.Context) ([]domain.Tag, error)

FetchAll provides a mock function with given fields: c

func (*TagRepository) GetByID

func (_m *TagRepository) GetByID(c context.Context, tagID uint64) (*domain.Tag, error)

GetByID provides a mock function with given fields: c, tagID

func (*TagRepository) Update

func (_m *TagRepository) Update(c context.Context, tag domain.Tag) error

Update provides a mock function with given fields: c, tag

type TagUsecase

type TagUsecase struct {
	mock.Mock
}

TagUsecase is an autogenerated mock type for the TagUsecase type

func NewTagUsecase

func NewTagUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *TagUsecase

NewTagUsecase creates a new instance of TagUsecase. 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 (*TagUsecase) Create

func (_m *TagUsecase) Create(c context.Context, tag domain.Tag) error

Create provides a mock function with given fields: c, tag

func (*TagUsecase) Delete

func (_m *TagUsecase) Delete(c context.Context, tagID uint64) error

Delete provides a mock function with given fields: c, tagID

func (*TagUsecase) Fetch

Fetch provides a mock function with given fields: c, r

func (*TagUsecase) FetchAll

func (_m *TagUsecase) FetchAll(c context.Context) ([]domain.Tag, error)

FetchAll provides a mock function with given fields: c

func (*TagUsecase) GetByID

func (_m *TagUsecase) GetByID(c context.Context, tagID uint64) (*domain.Tag, error)

GetByID provides a mock function with given fields: c, tagID

func (*TagUsecase) Update

func (_m *TagUsecase) Update(c context.Context, tag domain.Tag) error

Update provides a mock function with given fields: c, tag

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func NewUserRepository

func NewUserRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserRepository

NewUserRepository creates a new instance of UserRepository. 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 (*UserRepository) Create

func (_m *UserRepository) Create(c context.Context, user *domain.User) error

Create provides a mock function with given fields: c, user

func (*UserRepository) GetByEmail

func (_m *UserRepository) GetByEmail(c context.Context, email string) (domain.User, error)

GetByEmail provides a mock function with given fields: c, email

func (*UserRepository) GetByID

func (_m *UserRepository) GetByID(c context.Context, id string) (domain.User, error)

GetByID provides a mock function with given fields: c, id

Jump to

Keyboard shortcuts

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