ketchuptest

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 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 App

type App struct {
	// contains filtered or unexported fields
}

App mocks

func New

func New() *App

New create new instances

func (*App) Create

func (a *App) Create(_ context.Context, o model.Ketchup) (uint64, error)

Create mocks

func (*App) Delete

func (a *App) Delete(_ context.Context, o model.Ketchup) error

Delete mocks

func (*App) DoAtomic

func (a *App) DoAtomic(ctx context.Context, action func(context.Context) error) error

DoAtomic mocks

func (*App) GetByRepositoryID

func (a *App) GetByRepositoryID(_ context.Context, id uint64, forUpdate bool) (model.Ketchup, error)

GetByRepositoryID mocks

func (*App) List

func (a *App) List(_ context.Context, page, pageSize uint) ([]model.Ketchup, uint64, error)

List mocks

func (*App) ListByRepositoriesID

func (a *App) ListByRepositoriesID(_ context.Context, ids []uint64) ([]model.Ketchup, error)

ListByRepositoriesID mocks

func (*App) SetCreate

func (a *App) SetCreate(id uint64, err error) *App

SetCreate mocks

func (*App) SetDelete

func (a *App) SetDelete(err error) *App

SetDelete mocks

func (*App) SetDoAtomic

func (a *App) SetDoAtomic(err error) *App

SetDoAtomic mocks

func (*App) SetGetByRepositoryID

func (a *App) SetGetByRepositoryID(ketchup model.Ketchup, err error) *App

SetGetByRepositoryID mocks

func (*App) SetList

func (a *App) SetList(ketchups []model.Ketchup, total uint64, err error) *App

SetList mocks

func (*App) SetListByRepositoriesID

func (a *App) SetListByRepositoriesID(ketchups []model.Ketchup, err error) *App

SetListByRepositoriesID mocks

func (*App) SetUpdate

func (a *App) SetUpdate(err error) *App

SetUpdate mocks

func (*App) Update

func (a *App) Update(_ context.Context, o model.Ketchup) error

Update mocks

Jump to

Keyboard shortcuts

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