repositorytest

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 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 creates mock instance

func (*App) Create

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

Create mocks

func (*App) DeleteUnused

func (a *App) DeleteUnused(_ context.Context) error

DeleteUnused mocks

func (*App) DeleteUnusedVersions added in v1.10.0

func (a *App) DeleteUnusedVersions(_ context.Context) error

DeleteUnusedVersions mocks

func (*App) DoAtomic

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

DoAtomic mocks

func (*App) Get

func (a *App) Get(_ context.Context, _ uint64, _ bool) (model.Repository, error)

Get mocks

func (*App) GetByName

func (a *App) GetByName(_ context.Context, _ model.RepositoryKind, _, _ string) (model.Repository, error)

GetByName mocks

func (*App) List

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

List mocks

func (*App) ListByKind added in v1.12.0

func (a *App) ListByKind(_ context.Context, _, _ uint, _ model.RepositoryKind) ([]model.Repository, uint64, error)

ListByKind mocks

func (*App) SetCreate

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

SetCreate mocks

func (*App) SetDeleteUnused

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

SetDeleteUnused mocks

func (*App) SetDeleteUnusedVersions added in v1.10.0

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

SetDeleteUnusedVersions mocks

func (*App) SetDoAtomic

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

SetDoAtomic mocks

func (*App) SetGet

func (a *App) SetGet(repository model.Repository, err error) *App

SetGet mocks

func (*App) SetGetByName

func (a *App) SetGetByName(repository model.Repository, err error) *App

SetGetByName mocks

func (*App) SetList

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

SetList mocks

func (*App) SetListByKind added in v1.12.0

func (a *App) SetListByKind(repositories []model.Repository, total uint64, err error) *App

SetListByKind mocks

func (*App) SetSuggest

func (a *App) SetSuggest(repositories []model.Repository, err error) *App

SetSuggest mocks

func (*App) SetUpdateVersions

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

SetUpdateVersions mocks

func (*App) Suggest

func (a *App) Suggest(_ context.Context, _ []uint64, _ uint64) ([]model.Repository, error)

Suggest mocks

func (*App) UpdateVersions

func (a *App) UpdateVersions(_ context.Context, o model.Repository) error

UpdateVersions mocks

Jump to

Keyboard shortcuts

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