mocks

package
v0.0.0-...-f3bf748 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	mock.Mock
}

FS is an autogenerated mock type for the FS type

func NewFS

func NewFS(t interface {
	mock.TestingT
	Cleanup(func())
}) *FS

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

func (_m *FS) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*FS) Create

func (_m *FS) Create(ctx context.Context, name string) (vfs.File, error)

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

func (*FS) Open

func (_m *FS) Open(ctx context.Context, name string) (vfs.File, error)

Open provides a mock function with given fields: ctx, name

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile

func NewFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *File

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

func (_m *File) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*File) Read

func (_m *File) Read(ctx context.Context, buf []byte) (int, error)

Read provides a mock function with given fields: ctx, buf

func (*File) ReadDir

func (_m *File) ReadDir(ctx context.Context, n int) ([]fs.FileInfo, error)

ReadDir provides a mock function with given fields: ctx, n

func (*File) Stat

func (_m *File) Stat(ctx context.Context) (fs.FileInfo, error)

Stat provides a mock function with given fields: ctx

func (*File) Write

func (_m *File) Write(ctx context.Context, b []byte) (int, error)

Write provides a mock function with given fields: ctx, b

Jump to

Keyboard shortcuts

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