mockdal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *Backend

NewBackend creates a new instance of Backend. 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 (*Backend) Close

func (_m *Backend) Close() error

Close provides a mock function with given fields:

func (*Backend) Get

func (_m *Backend) Get(bucket string, key string) ([]byte, error)

Get provides a mock function with given fields: bucket, key

func (*Backend) Keys

func (_m *Backend) Keys(bucket string) ([]string, error)

Keys provides a mock function with given fields: bucket

func (*Backend) List

func (_m *Backend) List(bucket string) ([][]byte, error)

List provides a mock function with given fields: bucket

func (*Backend) Path

func (_m *Backend) Path(key string) string

Path provides a mock function with given fields: key

func (*Backend) Put

func (_m *Backend) Put(bucket string, key string, value []byte) error

Put provides a mock function with given fields: bucket, key, value

func (*Backend) Remove

func (_m *Backend) Remove(bucket string, key string) error

Remove provides a mock function with given fields: bucket, key

func (*Backend) Truncate

func (_m *Backend) Truncate(bucket string) error

Truncate provides a mock function with given fields: bucket

Jump to

Keyboard shortcuts

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