fstests

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFS

func CheckFS(t *testing.T, base fslib.ReadSeekerAt, new func(fslib.ReadSeekerAt) (forensicfs.ForensicFS, error), name string, tests map[string]*PathTest)

func GetDefaultContainerTests

func GetDefaultContainerTests() map[string]*PathTest

func RunTest

func RunTest(t *testing.T, name, file string, new func(fslib.ReadSeekerAt) (forensicfs.ForensicFS, error), tests map[string]*PathTest)

Types

type PathTest

type PathTest struct {
	TestName         string
	Path             string
	FileName         string
	InfoSize         int64
	InfoMode         os.FileMode
	InfoModTime      time.Time
	InfoIsDir        bool
	InfoSys          interface{}
	FileReaddirnames []string
	Head             []byte
}

Jump to

Keyboard shortcuts

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