mocks

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 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 Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) DeleteByID

func (_m *Repository) DeleteByID(ctx context.Context, id int64) (int, error)

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

func (*Repository) Get

func (_m *Repository) Get(ctx context.Context, data entity.GetRequest) ([]*entity.Anime, int, int, error)

Get provides a mock function with given fields: ctx, data

func (*Repository) GetByID

func (_m *Repository) GetByID(ctx context.Context, id int64) (*entity.Anime, int, error)

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

func (*Repository) GetByIDs

func (_m *Repository) GetByIDs(ctx context.Context, ids []int64) ([]*entity.Anime, int, error)

GetByIDs provides a mock function with given fields: ctx, ids

func (*Repository) GetHistories

func (_m *Repository) GetHistories(ctx context.Context, data entity.GetHistoriesRequest) ([]entity.History, int, error)

GetHistories provides a mock function with given fields: ctx, data

func (*Repository) GetIDs

func (_m *Repository) GetIDs(ctx context.Context) ([]int64, int, error)

GetIDs provides a mock function with given fields: ctx

func (*Repository) GetMaxID

func (_m *Repository) GetMaxID(ctx context.Context) (int64, int, error)

GetMaxID provides a mock function with given fields: ctx

func (*Repository) GetOldFinishedIDs

func (_m *Repository) GetOldFinishedIDs(ctx context.Context) ([]int64, int, error)

GetOldFinishedIDs provides a mock function with given fields: ctx

func (*Repository) GetOldNotYetIDs

func (_m *Repository) GetOldNotYetIDs(ctx context.Context) ([]int64, int, error)

GetOldNotYetIDs provides a mock function with given fields: ctx

func (*Repository) GetOldReleasingIDs

func (_m *Repository) GetOldReleasingIDs(ctx context.Context) ([]int64, int, error)

GetOldReleasingIDs provides a mock function with given fields: ctx

func (*Repository) GetRelatedByIDs

func (_m *Repository) GetRelatedByIDs(ctx context.Context, ids []int64) ([]*entity.AnimeRelated, int, error)

GetRelatedByIDs provides a mock function with given fields: ctx, ids

func (*Repository) IsOld

func (_m *Repository) IsOld(ctx context.Context, id int64) (bool, int, error)

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

func (*Repository) Update

func (_m *Repository) Update(ctx context.Context, data entity.Anime) (int, error)

Update provides a mock function with given fields: ctx, data

Jump to

Keyboard shortcuts

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