package pkgtest
import "github.com/markbates/pkger/pkging/pkgtest"
Index ¶
- type AppDetails
- type Suite
- func NewSuite(name string, fn func() (pkging.Pkger, error)) (Suite, error)
- func (s Suite) LoadFolder(pkg pkging.Pkger) error
- func (s Suite) Make() (pkging.Pkger, error)
- func (s Suite) Run(t *testing.T, name string, fn func(t *testing.T))
- func (s Suite) Test(t *testing.T)
- func (s Suite) Test_Create(t *testing.T)
- func (s Suite) Test_Create_No_MkdirAll(t *testing.T)
- func (s Suite) Test_Current(t *testing.T)
- func (s Suite) Test_File_Info(t *testing.T)
- func (s Suite) Test_File_Readdir(t *testing.T)
- func (s Suite) Test_HTTP(t *testing.T)
- func (s Suite) Test_Info(t *testing.T)
- func (s Suite) Test_MkdirAll(t *testing.T)
- func (s Suite) Test_Open_File(t *testing.T)
- func (s Suite) Test_Parse(t *testing.T)
- func (s Suite) Test_Remove(t *testing.T)
- func (s Suite) Test_RemoveAll(t *testing.T)
- func (s Suite) Test_Stat_Dir(t *testing.T)
- func (s Suite) Test_Stat_Error(t *testing.T)
- func (s Suite) Test_Stat_File(t *testing.T)
- func (s Suite) Test_Util_ReadFile(t *testing.T)
- func (s Suite) Test_Walk(t *testing.T)
- func (s Suite) WriteFolder(root string) error
Types ¶
type AppDetails ¶
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 (Suite) LoadFolder ¶
func (Suite) Make ¶
func (Suite) Run ¶
func (Suite) Test ¶
func (Suite) Test_Create ¶
func (Suite) Test_Create_No_MkdirAll ¶
func (Suite) Test_Current ¶
func (Suite) Test_File_Info ¶
func (Suite) Test_File_Readdir ¶
func (s Suite) Test_File_Read(t *testing.T) { panic("not implemented") }
func (Suite) Test_HTTP ¶
func (Suite) Test_Info ¶
func (Suite) Test_MkdirAll ¶
func (Suite) Test_Open_File ¶
func (Suite) Test_Parse ¶
func (Suite) Test_Remove ¶
func (Suite) Test_RemoveAll ¶
func (Suite) Test_Stat_Dir ¶
func (Suite) Test_Stat_Error ¶
func (Suite) Test_Stat_File ¶
func (Suite) Test_Util_ReadFile ¶
func (Suite) Test_Walk ¶
func (Suite) WriteFolder ¶
Source Files ¶
app.go file.go http.go pkgtest.go suite.go util.go
- Version
- v0.3.2
- Published
- Oct 22, 2019
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 11 hours ago –
Tools for package owners.