package pkgtest

import "github.com/markbates/pkger/pkging/pkgtest"

Index

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)

Source Files

create.go current.go http.go info.go load_ref.go mkdir_all.go open.go pkgtest.go ref.go remove.go remove_all.go stat.go walk.go

Version
v0.17.1 (latest)
Published
Aug 12, 2020
Platform
js/wasm
Imports
15 packages
Last checked
2 days ago

Tools for package owners.