mocks

package
v2.0.0-alpha.29 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 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 FileManager

type FileManager struct {
	mock.Mock
}

FileManager is an autogenerated mock type for the FileManager type

func (*FileManager) Remove

func (_m *FileManager) Remove(path string) error

Remove provides a mock function with given fields: path

func (*FileManager) RemoveAll

func (_m *FileManager) RemoveAll(path string) error

RemoveAll provides a mock function with given fields: path

func (*FileManager) Write

func (_m *FileManager) Write(path string, value string, mode fs.FileMode) error

Write provides a mock function with given fields: path, value, mode

func (*FileManager) WriteBytes

func (_m *FileManager) WriteBytes(path string, value []byte) error

type PathChecker

type PathChecker struct {
	mock.Mock
}

PathChecker is an autogenerated mock type for the PathChecker type

func NewPathChecker

func NewPathChecker(t testing.TB) *PathChecker

NewPathChecker creates a new instance of PathChecker. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*PathChecker) IsPathExists

func (_m *PathChecker) IsPathExists(pth string) (bool, error)

IsPathExists provides a mock function with given fields: pth

type PathModifier

type PathModifier struct {
	mock.Mock
}

PathModifier is an autogenerated mock type for the PathModifier type

func (*PathModifier) AbsPath

func (_m *PathModifier) AbsPath(pth string) (string, error)

AbsPath provides a mock function with given fields: pth

type PathProvider

type PathProvider struct {
	mock.Mock
}

PathProvider is an autogenerated mock type for the PathProvider type

func (*PathProvider) CreateTempDir

func (_m *PathProvider) CreateTempDir(prefix string) (string, error)

CreateTempDir provides a mock function with given fields: prefix

Jump to

Keyboard shortcuts

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