mocks

package
v0.0.0-...-d850389 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) DeleteName

func (_m *Store) DeleteName(name string) error

DeleteName provides a mock function with given fields: name

func (*Store) Exists

func (_m *Store) Exists(hash string) error

Exists provides a mock function with given fields: hash

func (*Store) GetCode

func (_m *Store) GetCode(fiddleHash string) (string, *types.Options, error)

GetCode provides a mock function with given fields: fiddleHash

func (*Store) GetHashFromName

func (_m *Store) GetHashFromName(name string) (string, error)

GetHashFromName provides a mock function with given fields: name

func (*Store) GetMedia

func (_m *Store) GetMedia(fiddleHash string, media store.Media) ([]byte, string, string, error)

GetMedia provides a mock function with given fields: fiddleHash, media

func (*Store) ListAllNames

func (_m *Store) ListAllNames() ([]store.Named, error)

ListAllNames provides a mock function with given fields:

func (*Store) Put

func (_m *Store) Put(code string, options types.Options, results *types.Result) (string, error)

Put provides a mock function with given fields: code, options, results

func (*Store) PutMedia

func (_m *Store) PutMedia(options types.Options, fiddleHash string, results *types.Result) error

PutMedia provides a mock function with given fields: options, fiddleHash, results

func (*Store) SetStatus

func (_m *Store) SetStatus(name string, status string) error

SetStatus provides a mock function with given fields: name, status

func (*Store) ValidName

func (_m *Store) ValidName(name string) bool

ValidName provides a mock function with given fields: name

func (*Store) WriteName

func (_m *Store) WriteName(name string, hash string, user string, status string) error

WriteName provides a mock function with given fields: name, hash, user, status

Jump to

Keyboard shortcuts

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