testfs

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(afs afero.Fs, reference *Fs) bool

func Show

func Show(afs afero.Fs) string

func ShowIndent

func ShowIndent(afs afero.Fs, n int) string

Types

type FileDesc

type FileDesc struct {
	Path string
	Size int64
	Seed int64
}

type Fs

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

func From

func From(fs afero.Fs) *Fs

func New

func New(files []FileDesc) *Fs

func Read

func Read(s string) *Fs

func (*Fs) Equal

func (fs *Fs) Equal(other *Fs) bool

func (*Fs) Mkfs

func (fs *Fs) Mkfs() afero.Fs

func (*Fs) Show

func (fs *Fs) Show() string

func (*Fs) ShowIndent

func (fs *Fs) ShowIndent(n int) string

Jump to

Keyboard shortcuts

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