package pkgtest

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

Index

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

Source Files

app.go file.go http.go pkgtest.go suite.go util.go

Version
v0.3.1
Published
Oct 22, 2019
Platform
js/wasm
Imports
16 packages
Last checked
8 hours ago

Tools for package owners.