mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 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 Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Driver

NewDriver creates a new instance of Driver. 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 (*Driver) Clone

func (_m *Driver) Clone(ctx context.Context, source string, target string) error

Clone provides a mock function with given fields: ctx, source, target

func (*Driver) Connection

func (_m *Driver) Connection(ctx context.Context) (*sql.DB, error)

Connection provides a mock function with given fields: ctx

func (*Driver) Create

func (_m *Driver) Create(ctx context.Context, target string) error

Create provides a mock function with given fields: ctx, target

func (*Driver) List

func (_m *Driver) List(ctx context.Context) ([]string, error)

List provides a mock function with given fields: ctx

func (*Driver) Prune

func (_m *Driver) Prune(ctx context.Context) error

Prune provides a mock function with given fields: ctx

func (*Driver) PruneList

func (_m *Driver) PruneList(ctx context.Context) ([]string, error)

PruneList provides a mock function with given fields: ctx

func (*Driver) Remove

func (_m *Driver) Remove(ctx context.Context, target string) error

Remove provides a mock function with given fields: ctx, target

func (*Driver) URI

func (_m *Driver) URI(ctx context.Context) string

URI provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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