mocks

package
v0.0.0-...-e49c738 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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 CommentRepo

type CommentRepo struct {
	mock.Mock
}

CommentRepo is an autogenerated mock type for the CommentRepo type

func NewCommentRepo

func NewCommentRepo(t mockConstructorTestingTNewCommentRepo) *CommentRepo

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

func (*CommentRepo) Delete

func (_m *CommentRepo) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*CommentRepo) Fetch

func (_m *CommentRepo) Fetch(_a0 context.Context, _a1 *[]models.Comment, _a2 uint) error

Fetch provides a mock function with given fields: _a0, _a1, _a2

func (*CommentRepo) GetByUserID

func (_m *CommentRepo) GetByUserID(_a0 context.Context, _a1 *models.Comment, _a2 uint) error

GetByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*CommentRepo) Store

func (_m *CommentRepo) Store(_a0 context.Context, _a1 *models.Comment) error

Store provides a mock function with given fields: _a0, _a1

func (*CommentRepo) Update

func (_m *CommentRepo) Update(_a0 context.Context, _a1 models.Comment, _a2 uint) (models.Photo, error)

Update provides a mock function with given fields: _a0, _a1, _a2

type CommentUsecase

type CommentUsecase struct {
	mock.Mock
}

CommentUsecase is an autogenerated mock type for the CommentUsecase type

func NewCommentUsecase

func NewCommentUsecase(t mockConstructorTestingTNewCommentUsecase) *CommentUsecase

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

func (*CommentUsecase) Delete

func (_m *CommentUsecase) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*CommentUsecase) Fetch

func (_m *CommentUsecase) Fetch(_a0 context.Context, _a1 *[]models.Comment, _a2 uint) error

Fetch provides a mock function with given fields: _a0, _a1, _a2

func (*CommentUsecase) GetByUserID

func (_m *CommentUsecase) GetByUserID(_a0 context.Context, _a1 *models.Comment, _a2 uint) error

GetByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*CommentUsecase) Store

func (_m *CommentUsecase) Store(_a0 context.Context, _a1 *models.Comment) error

Store provides a mock function with given fields: _a0, _a1

func (*CommentUsecase) Update

func (_m *CommentUsecase) Update(_a0 context.Context, _a1 models.Comment, _a2 uint) (models.Photo, error)

Update provides a mock function with given fields: _a0, _a1, _a2

type PhotoRepo

type PhotoRepo struct {
	mock.Mock
}

PhotoRepo is an autogenerated mock type for the PhotoRepo type

func NewPhotoRepo

func NewPhotoRepo(t mockConstructorTestingTNewPhotoRepo) *PhotoRepo

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

func (*PhotoRepo) Delete

func (_m *PhotoRepo) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*PhotoRepo) Fetch

func (_m *PhotoRepo) Fetch(_a0 context.Context, _a1 *[]models.Photo) error

Fetch provides a mock function with given fields: _a0, _a1

func (*PhotoRepo) GetByID

func (_m *PhotoRepo) GetByID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error

GetByID provides a mock function with given fields: _a0, _a1, _a2

func (*PhotoRepo) GetByUserID

func (_m *PhotoRepo) GetByUserID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error

GetByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*PhotoRepo) Store

func (_m *PhotoRepo) Store(_a0 context.Context, _a1 *models.Photo) error

Store provides a mock function with given fields: _a0, _a1

func (*PhotoRepo) Update

func (_m *PhotoRepo) Update(_a0 context.Context, _a1 models.Photo, _a2 uint) (models.Photo, error)

Update provides a mock function with given fields: _a0, _a1, _a2

type PhotoUsecase

type PhotoUsecase struct {
	mock.Mock
}

PhotoUsecase is an autogenerated mock type for the PhotoUsecase type

func NewPhotoUsecase

func NewPhotoUsecase(t mockConstructorTestingTNewPhotoUsecase) *PhotoUsecase

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

func (*PhotoUsecase) Delete

func (_m *PhotoUsecase) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*PhotoUsecase) Fetch

func (_m *PhotoUsecase) Fetch(_a0 context.Context, _a1 *[]models.Photo) error

Fetch provides a mock function with given fields: _a0, _a1

func (*PhotoUsecase) GetByID

func (_m *PhotoUsecase) GetByID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error

GetByID provides a mock function with given fields: _a0, _a1, _a2

func (*PhotoUsecase) GetByUserID

func (_m *PhotoUsecase) GetByUserID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error

GetByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*PhotoUsecase) Store

func (_m *PhotoUsecase) Store(_a0 context.Context, _a1 *models.Photo) error

Store provides a mock function with given fields: _a0, _a1

func (*PhotoUsecase) Update

func (_m *PhotoUsecase) Update(_a0 context.Context, _a1 models.Photo, _a2 uint) (models.Photo, error)

Update provides a mock function with given fields: _a0, _a1, _a2

type SocialMediaRepo

type SocialMediaRepo struct {
	mock.Mock
}

SocialMediaRepo is an autogenerated mock type for the SocialMediaRepo type

func NewSocialMediaRepo

func NewSocialMediaRepo(t mockConstructorTestingTNewSocialMediaRepo) *SocialMediaRepo

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

func (*SocialMediaRepo) Delete

func (_m *SocialMediaRepo) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*SocialMediaRepo) Fetch

func (_m *SocialMediaRepo) Fetch(_a0 context.Context, _a1 *[]models.SocialMedia, _a2 uint) error

Fetch provides a mock function with given fields: _a0, _a1, _a2

func (*SocialMediaRepo) GetByUserID

func (_m *SocialMediaRepo) GetByUserID(_a0 context.Context, _a1 *models.SocialMedia, _a2 uint) error

GetByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*SocialMediaRepo) Store

func (_m *SocialMediaRepo) Store(_a0 context.Context, _a1 *models.SocialMedia) error

Store provides a mock function with given fields: _a0, _a1

func (*SocialMediaRepo) Update

Update provides a mock function with given fields: _a0, _a1, _a2

type SocialMediaUsecase

type SocialMediaUsecase struct {
	mock.Mock
}

SocialMediaUsecase is an autogenerated mock type for the SocialMediaUsecase type

func NewSocialMediaUsecase

func NewSocialMediaUsecase(t mockConstructorTestingTNewSocialMediaUsecase) *SocialMediaUsecase

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

func (*SocialMediaUsecase) Delete

func (_m *SocialMediaUsecase) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*SocialMediaUsecase) Fetch

func (_m *SocialMediaUsecase) Fetch(_a0 context.Context, _a1 *[]models.SocialMedia, _a2 uint) error

Fetch provides a mock function with given fields: _a0, _a1, _a2

func (*SocialMediaUsecase) GetByUserID

func (_m *SocialMediaUsecase) GetByUserID(_a0 context.Context, _a1 *models.SocialMedia, _a2 uint) error

GetByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*SocialMediaUsecase) Store

Store provides a mock function with given fields: _a0, _a1

func (*SocialMediaUsecase) Update

Update provides a mock function with given fields: _a0, _a1, _a2

type UserRepo

type UserRepo struct {
	mock.Mock
}

UserRepo is an autogenerated mock type for the UserRepo type

func NewUserRepo

func NewUserRepo(t mockConstructorTestingTNewUserRepo) *UserRepo

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

func (*UserRepo) Delete

func (_m *UserRepo) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*UserRepo) Login

func (_m *UserRepo) Login(_a0 context.Context, _a1 *models.User) error

Login provides a mock function with given fields: _a0, _a1

func (*UserRepo) Register

func (_m *UserRepo) Register(_a0 context.Context, _a1 *models.User) error

Register provides a mock function with given fields: _a0, _a1

func (*UserRepo) Update

func (_m *UserRepo) Update(_a0 context.Context, _a1 models.User, _a2 uint) (models.User, error)

Update provides a mock function with given fields: _a0, _a1, _a2

type UserUsecase

type UserUsecase struct {
	mock.Mock
}

UserUsecase is an autogenerated mock type for the UserUsecase type

func NewUserUsecase

func NewUserUsecase(t mockConstructorTestingTNewUserUsecase) *UserUsecase

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

func (*UserUsecase) Delete

func (_m *UserUsecase) Delete(_a0 context.Context, _a1 uint) error

Delete provides a mock function with given fields: _a0, _a1

func (*UserUsecase) Login

func (_m *UserUsecase) Login(_a0 context.Context, _a1 *models.User) error

Login provides a mock function with given fields: _a0, _a1

func (*UserUsecase) Register

func (_m *UserUsecase) Register(_a0 context.Context, _a1 *models.User) error

Register provides a mock function with given fields: _a0, _a1

func (*UserUsecase) Update

func (_m *UserUsecase) Update(_a0 context.Context, _a1 models.User, _a2 uint) (models.User, error)

Update provides a mock function with given fields: _a0, _a1, _a2

Jump to

Keyboard shortcuts

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