fsmock

package
v0.0.0-...-367f9bc Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockFileInfo

func MockFileInfo(name string, isDir bool, size int64, modTime *time.Time) fs.FileInfo

Types

type MockReaderCloser

type MockReaderCloser struct {
	ReadFn  func(p []byte) (n int, err error)
	CloseFn func()
}

func (*MockReaderCloser) Close

func (rc *MockReaderCloser) Close() error

func (*MockReaderCloser) Read

func (rc *MockReaderCloser) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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