mocks

package
v0.0.0-...-75230db Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	mock.Mock
}

FileSystem is an autogenerated mock type for the FileSystem type

func NewFileSystem

func NewFileSystem(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileSystem

NewFileSystem creates a new instance of FileSystem. 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 (*FileSystem) OpenFile

func (_m *FileSystem) OpenFile(path string) (interfaces.Writer, error)

OpenFile provides a mock function with given fields: path

func (*FileSystem) ReadFile

func (_m *FileSystem) ReadFile(filename string) ([]byte, error)

ReadFile provides a mock function with given fields: filename

type QueryCommand

type QueryCommand struct {
	mock.Mock
}

QueryCommand is an autogenerated mock type for the QueryCommand type

func NewQueryCommand

func NewQueryCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueryCommand

NewQueryCommand creates a new instance of QueryCommand. 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 (*QueryCommand) Read

func (_m *QueryCommand) Read() ([]byte, error)

Read provides a mock function with given fields:

Jump to

Keyboard shortcuts

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