package htesting
import "github.com/gohugoio/hugo/htesting"
Index ¶
- func BailOut(after time.Duration)
- func CreateTempDir(fs afero.Fs, prefix string) (string, func(), error)
- func NewTestdataBuilder(fs afero.Fs, workingDir string, t testing.TB) *testdataBuilder
- func RandIntn(n int) int
Functions ¶
func BailOut ¶
BailOut panics with a stack trace after the given duration. Useful for hanging tests.
func CreateTempDir ¶
CreateTempDir creates a temp dir in the given filesystem and returns the dirnam and a func that removes it when done.
func NewTestdataBuilder ¶
func RandIntn ¶
Source Files ¶
test_helpers.go testdata_builder.go
Directories ¶
Path | Synopsis |
---|---|
htesting/hqt |
- Version
- v0.64.1
- Published
- Feb 9, 2020
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 hours ago –
Tools for package owners.