testutils

package
v0.0.0-...-e082e2d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 OfferRepositoryMock

type OfferRepositoryMock struct {
	Callback     func(this *OfferRepositoryMock, method string, args ...any)
	ReturnSingle *model.Offer
	ReturnMany   []*model.Offer
	ReturnError  error
}

OfferRepositoryMock is a mock implementation of model.Offer Repository

func (*OfferRepositoryMock) Delete

func (*OfferRepositoryMock) FindAll

func (m *OfferRepositoryMock) FindAll(ctx context.Context, limit int64, skip int64) ([]*model.Offer, int64, error)

func (*OfferRepositoryMock) FindBy

func (m *OfferRepositoryMock) FindBy(ctx context.Context, by primitive.M) ([]*model.Offer, error)

func (*OfferRepositoryMock) FindById

func (*OfferRepositoryMock) Insert

func (m *OfferRepositoryMock) Insert(ctx context.Context, offer *model.Offer) error

func (*OfferRepositoryMock) Update

func (m *OfferRepositoryMock) Update(ctx context.Context, offer *model.Offer) error

type WatchUrlRepositoryMock

type WatchUrlRepositoryMock struct {
	Callback     func(this *WatchUrlRepositoryMock, method string, args ...any)
	ReturnSingle *model.WatchUrl
	ReturnMany   []*model.WatchUrl
	ReturnError  error
}

func (*WatchUrlRepositoryMock) Delete

func (*WatchUrlRepositoryMock) FindAll

func (w *WatchUrlRepositoryMock) FindAll(ctx context.Context, limit int64, skip int64) ([]*model.WatchUrl, int64, error)

func (*WatchUrlRepositoryMock) FindBy

func (*WatchUrlRepositoryMock) FindById

func (*WatchUrlRepositoryMock) Insert

func (w *WatchUrlRepositoryMock) Insert(ctx context.Context, watchUrl *model.WatchUrl) error

func (*WatchUrlRepositoryMock) InsertIfNotExists

func (w *WatchUrlRepositoryMock) InsertIfNotExists(ctx context.Context, watchUrl *model.WatchUrl) error

func (*WatchUrlRepositoryMock) Update

func (w *WatchUrlRepositoryMock) Update(ctx context.Context, watchUrl *model.WatchUrl) error

Jump to

Keyboard shortcuts

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