Help us shape the future of Go! Take the 2026 Go Developer Survey

testfixture

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RelFixtureDir = "fixtures"

Functions

func AbsPath

func AbsPath(t *testing.T, fixtureName string) string

AbsPath returns the absolute path to a fixture inside the FixtureDir

func Clone

func Clone(t *testing.T, fPath string) (dest string)

Clone creates a test TempDir, copies the given Pack into it, and returns the absolute path to the copy.

func MustAbsPath

func MustAbsPath(fixtureName string) string

MustAbsPath returns the absolute path to a fixture inside the FixtureDir

func MustClone

func MustClone(dst string, fPath string) (dest string)

Clone creates a test TempDir, copies the given Pack into it, and returns the absolute path to the copy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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