pkgtest

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(t *testing.T, fn AllFn)

func CmpFileInfo

func CmpFileInfo(t *testing.T, a os.FileInfo, b os.FileInfo)

func CreateTest

func CreateTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func CurrentTest

func CurrentTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func HTTPTest

func HTTPTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func InfoTest

func InfoTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func LoadFile

func LoadFile(name string, ref *Ref, pkg pkging.Pkger) (os.FileInfo, error)

func LoadFiles

func LoadFiles(name string, ref *Ref, pkg pkging.Pkger) ([]os.FileInfo, error)

func MkdirAllTest

func MkdirAllTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func OpenTest

func OpenTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func RemoveAllTest

func RemoveAllTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func RemoveTest

func RemoveTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func StatTest

func StatTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

func WalkTest

func WalkTest(t *testing.T, ref *Ref, pkg pkging.Pkger)

Types

type AllFn

type AllFn func(ref *Ref) (pkging.Pkger, error)

type Ref

type Ref struct {
	here.Info
	// contains filtered or unexported fields
}

func NewRef

func NewRef() (*Ref, error)

Jump to

Keyboard shortcuts

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