package htesting

import "github.com/gohugoio/hugo/htesting"

Index

Functions

func CreateTempDir

func CreateTempDir(fs afero.Fs, prefix string) (string, func(), error)

CreateTempDir creates a temp dir in the given filesystem and returns the dirnam and a func that removes it when done.

func NewTestdataBuilder

func NewTestdataBuilder(fs afero.Fs, workingDir string, t testing.TB) *testdataBuilder

Source Files

test_helpers.go testdata_builder.go

Version
v0.56.1
Published
Jul 28, 2019
Platform
linux/amd64
Imports
5 packages
Last checked
23 seconds ago

Tools for package owners.