storetest

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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 mock app

func New

func New() *App

New creates raw mock

func (*App) Create

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

Create mocks

func (*App) Delete

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

Delete 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) (model.User, error)

Get 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) SetGet

func (a *App) SetGet(user model.User, err error) *App

SetGet mocks

func (*App) SetUpdate

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

SetUpdate mocks

func (*App) Update

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

Update mocks

Jump to

Keyboard shortcuts

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