mocks

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvocationReadFile = "ReadFile"
	InvocationStat     = "Stat"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReadingMock

type FileReadingMock struct {
	Invocations []string

	Results struct {
		ReadFile struct {
			Success []byte
			Error   error
		}
		Stat struct {
			Success fs.FileInfo
			Error   error
		}
	}
}

func (*FileReadingMock) ReadFile

func (mock *FileReadingMock) ReadFile(filename string) ([]byte, error)

func (*FileReadingMock) Reset

func (mock *FileReadingMock) Reset()

func (*FileReadingMock) Stat

func (mock *FileReadingMock) Stat(filename string) (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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