mocks

package
v0.0.0-...-497f111 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 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 NewFileManager

func NewFileManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileManager

NewFileManager creates a new instance of FileManager. 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 (*FileManager) Open

func (_m *FileManager) Open(path string) (*os.File, error)

Open provides a mock function with given fields: path

func (*FileManager) OpenReaderIfExists

func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)

OpenReaderIfExists provides a mock function with given fields: path

func (*FileManager) ReadDirEntryNames

func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)

ReadDirEntryNames provides a mock function with given fields: path

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, perm fs.FileMode) error

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

func (*FileManager) WriteBytes

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

WriteBytes provides a mock function with given fields: path, value

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 XcconfigWriter

type XcconfigWriter struct {
	mock.Mock
}

XcconfigWriter is an autogenerated mock type for the Writer type

func (*XcconfigWriter) Write

func (_m *XcconfigWriter) Write(content string) (string, error)

Write provides a mock function with given fields: content

Jump to

Keyboard shortcuts

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