testfs

package
v0.0.0-...-aa4546b Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fs

type Fs struct {
	// contains filtered or unexported fields
}

func CreateFs

func CreateFs(name string, startup func(f *Fs) error) (*Fs, error)

func (*Fs) Delete

func (f *Fs) Delete() error

func (*Fs) FileAsText

func (tfs *Fs) FileAsText(path string) (string, error)

func (*Fs) Path

func (f *Fs) Path() string

func (*Fs) Rand

func (f *Fs) Rand() *rand.Rand

func (*Fs) RandTextFile

func (tfs *Fs) RandTextFile(path string, mxlines int) error

func (*Fs) RandomWord

func (f *Fs) RandomWord() string

func (*Fs) SetIoutilReadFile

func (f *Fs) SetIoutilReadFile(ioutilReadFile func(path string) ([]byte, error))

func (*Fs) SetNoPlugin

func (f *Fs) SetNoPlugin()

func (*Fs) SetOsCreate

func (f *Fs) SetOsCreate(osCreate func(path string) (*os.File, error))

func (*Fs) SetOsFileWriteString

func (f *Fs) SetOsFileWriteString(osFileWriteString func(*os.File, string) (n int, err error))

Jump to

Keyboard shortcuts

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