Versions in this module Expand all Collapse all v0 v0.2.1 Mar 8, 2024 Changes in this version + func GetMockFuncArgumentValue[T any](args []MockFuncArgument, name string) (T, bool) + type MockFileIo struct + func NewMockFileIo() *MockFileIo + func (f *MockFileIo) On(op MockOperation) *MockOperation + func (f MockFileIo) Checksum(path string, method helpers_io.ChecksumMethod) (string, error) + func (f MockFileIo) CopyDir(source, destination string) error + func (f MockFileIo) CopyFile(source, destination string) error + func (f MockFileIo) CreateDir(folderPath string, mode os.FileMode) error + func (f MockFileIo) DeleteDir(path string) error + func (f MockFileIo) DeleteFile(path string) error + func (f MockFileIo) DirExists(folderPath string) bool + func (f MockFileIo) FileExists(path string) bool + func (f MockFileIo) GetExecutionPath() string + func (f MockFileIo) GetOperatingSystem() helpers_io.OperatingSystem + func (f MockFileIo) GetOsPathSeparator() string + func (f MockFileIo) JoinPath(parts ...string) string + func (f MockFileIo) ReadBufferedFile(path string, from, to int) ([]byte, error) + func (f MockFileIo) ReadDir(path string) ([]fs.DirEntry, error) + func (f MockFileIo) ReadFile(path string) ([]byte, error) + func (f MockFileIo) ToOsPath(path string) string + func (f MockFileIo) WriteBufferedFile(path string, data []byte, bufferSize int, mode os.FileMode) error + func (f MockFileIo) WriteFile(path string, data []byte, mode os.FileMode) error + type MockFuncArgument struct + Name string + Value interface{} + type MockOperation struct + CalledWith []MockFuncArgument + Func func(args ...MockFuncArgument) interface{} + FuncWithErr func(args ...MockFuncArgument) (interface{}, error) + Method string + ReturnError error + ReturnValue interface{}