mocks

package
v0.0.0-...-e9f4405 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumRepo

type AlbumRepo struct {
	mock.Mock
}

AlbumRepo is an autogenerated mock type for the AlbumRepo type

func NewAlbumRepo

func NewAlbumRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *AlbumRepo

NewAlbumRepo creates a new instance of AlbumRepo. 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 (*AlbumRepo) CreateMany

func (_m *AlbumRepo) CreateMany(ctx context.Context, imageFiles []*entities.File) ([]*entities.Image, error)

CreateMany provides a mock function with given fields: ctx, imageFiles

func (*AlbumRepo) CreateOne

func (_m *AlbumRepo) CreateOne(ctx context.Context, imageFile *entities.File) (*entities.Image, error)

CreateOne provides a mock function with given fields: ctx, imageFile

func (*AlbumRepo) GetUserAlbum

func (_m *AlbumRepo) GetUserAlbum(ctx context.Context) ([]*entities.Image, error)

GetUserAlbum provides a mock function with given fields: ctx

type FeedRepo

type FeedRepo struct {
	mock.Mock
}

FeedRepo is an autogenerated mock type for the FeedRepo type

func NewFeedRepo

func NewFeedRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *FeedRepo

NewFeedRepo creates a new instance of FeedRepo. 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 (*FeedRepo) GetFeed

func (_m *FeedRepo) GetFeed(ctx context.Context, userId int64, page int, limit int) ([]*entities.User, error)

GetFeed provides a mock function with given fields: ctx, userId, page, limit

type FileRepo

type FileRepo struct {
	mock.Mock
}

FileRepo is an autogenerated mock type for the FileRepo type

func NewFileRepo

func NewFileRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileRepo

NewFileRepo creates a new instance of FileRepo. 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 (*FileRepo) UploadFile

func (_m *FileRepo) UploadFile(ctx context.Context, file *entities.File) (string, error)

UploadFile provides a mock function with given fields: ctx, file

type MatchingRepo

type MatchingRepo struct {
	mock.Mock
}

MatchingRepo is an autogenerated mock type for the MatchingRepo type

func NewMatchingRepo

func NewMatchingRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MatchingRepo

NewMatchingRepo creates a new instance of MatchingRepo. 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 (*MatchingRepo) CreateOne

func (_m *MatchingRepo) CreateOne(ctx context.Context, matching *entities.UserMatching) (*entities.UserMatching, error)

CreateOne provides a mock function with given fields: ctx, matching

func (*MatchingRepo) DeleteOne

func (_m *MatchingRepo) DeleteOne(ctx context.Context, userId int64, partnerId int64) error

DeleteOne provides a mock function with given fields: ctx, userId, partnerId

func (*MatchingRepo) ListMatching

func (_m *MatchingRepo) ListMatching(ctx context.Context, userId int64, page int, limit int) ([]*entities.User, error)

ListMatching provides a mock function with given fields: ctx, userId, page, limit

func (*MatchingRepo) WhoILike

func (_m *MatchingRepo) WhoILike(ctx context.Context, userId int64) ([]*entities.User, error)

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

func (*MatchingRepo) WhoLikeMe

func (_m *MatchingRepo) WhoLikeMe(ctx context.Context, partnerId int64) ([]*entities.User, error)

WhoLikeMe provides a mock function with given fields: ctx, partnerId

type UserRepo

type UserRepo struct {
	mock.Mock
}

UserRepo is an autogenerated mock type for the UserRepo type

func NewUserRepo

func NewUserRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*UserRepo) CreateOne

func (_m *UserRepo) CreateOne(ctx context.Context, user *entities.User) (*entities.User, error)

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

func (*UserRepo) DeleteOne

func (_m *UserRepo) DeleteOne(ctx context.Context, id int64) error

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

func (*UserRepo) GetByPhone

func (_m *UserRepo) GetByPhone(ctx context.Context, phone string) (*entities.User, error)

GetByPhone provides a mock function with given fields: ctx, phone

func (*UserRepo) GetOne

func (_m *UserRepo) GetOne(ctx context.Context, id int64) (*entities.User, error)

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

func (*UserRepo) List

func (_m *UserRepo) List(ctx context.Context, page int, offset int) ([]*entities.User, error)

List provides a mock function with given fields: ctx, page, offset

func (*UserRepo) UpdateOne

func (_m *UserRepo) UpdateOne(ctx context.Context, user *entities.User) (*entities.User, error)

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

func (*UserRepo) VerifyPhone

func (_m *UserRepo) VerifyPhone(ctx context.Context, phone string) (bool, error)

VerifyPhone provides a mock function with given fields: ctx, phone

type WalletRepo

type WalletRepo struct {
	mock.Mock
}

WalletRepo is an autogenerated mock type for the WalletRepo type

func NewWalletRepo

func NewWalletRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *WalletRepo

NewWalletRepo creates a new instance of WalletRepo. 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 (*WalletRepo) CreateOne

func (_m *WalletRepo) CreateOne(ctx context.Context, transaction *entities.WalletTransaction) (*entities.WalletTransaction, error)

CreateOne provides a mock function with given fields: ctx, transaction

func (*WalletRepo) GetTotalAmount

func (_m *WalletRepo) GetTotalAmount(ctx context.Context, userId int64) (decimal.Decimal, error)

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

func (*WalletRepo) ListTransactions

func (_m *WalletRepo) ListTransactions(ctx context.Context, userId int64, page int, limit int) ([]*entities.WalletTransaction, error)

ListTransactions provides a mock function with given fields: ctx, userId, page, limit

Jump to

Keyboard shortcuts

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