pkgtest

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDetails

type AppDetails struct {
	here.Info
	Paths struct {
		Root   []string
		Parser []string
		Public []string
	}
}

func App

func App() (AppDetails, error)

App returns here.info that represents the ./internal/testdata/app. This should be used by tests.

type Suite

type Suite struct {
	Name string
	// contains filtered or unexported fields
}

func NewSuite

func NewSuite(name string, fn func() (pkging.Pkger, error)) (Suite, error)

func (Suite) LoadFolder

func (s Suite) LoadFolder(pkg pkging.Pkger) error

func (Suite) Make

func (s Suite) Make() (pkging.Pkger, error)

func (Suite) Run

func (s Suite) Run(t *testing.T, name string, fn func(t *testing.T))

func (Suite) Test

func (s Suite) Test(t *testing.T)

func (Suite) Test_Create

func (s Suite) Test_Create(t *testing.T)

func (Suite) Test_Create_No_MkdirAll

func (s Suite) Test_Create_No_MkdirAll(t *testing.T)

func (Suite) Test_Current

func (s Suite) Test_Current(t *testing.T)

func (Suite) Test_File_Info

func (s Suite) Test_File_Info(t *testing.T)

func (Suite) Test_File_Readdir

func (s Suite) Test_File_Readdir(t *testing.T)
func (s Suite) Test_File_Read(t *testing.T) {
	panic("not implemented")
}

func (Suite) Test_HTTP

func (s Suite) Test_HTTP(t *testing.T)

func (Suite) Test_Info

func (s Suite) Test_Info(t *testing.T)

func (Suite) Test_MkdirAll

func (s Suite) Test_MkdirAll(t *testing.T)

func (Suite) Test_Open_File

func (s Suite) Test_Open_File(t *testing.T)

func (Suite) Test_Parse

func (s Suite) Test_Parse(t *testing.T)

func (Suite) Test_Remove

func (s Suite) Test_Remove(t *testing.T)

func (Suite) Test_RemoveAll

func (s Suite) Test_RemoveAll(t *testing.T)

func (Suite) Test_Stat_Dir

func (s Suite) Test_Stat_Dir(t *testing.T)

func (Suite) Test_Stat_Error

func (s Suite) Test_Stat_Error(t *testing.T)

func (Suite) Test_Stat_File

func (s Suite) Test_Stat_File(t *testing.T)

func (Suite) Test_Util_ReadFile

func (s Suite) Test_Util_ReadFile(t *testing.T)

func (Suite) Test_Walk

func (s Suite) Test_Walk(t *testing.T)

func (Suite) WriteFolder

func (s Suite) WriteFolder(root string) error

Jump to

Keyboard shortcuts

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