testharness

package
v0.15.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGoldenTests

func RunGoldenTests(t *testing.T, basedir string, fn func(h *Harness, dir string))

Types

type Harness

type Harness struct {
	*testing.T
}

func New

func New(t *testing.T) *Harness

func (*Harness) Cleanup

func (h *Harness) Cleanup()

func (*Harness) CompareGoldenFile

func (h *Harness) CompareGoldenFile(p string, got string)

func (*Harness) FileExists

func (h *Harness) FileExists(p string) bool

func (*Harness) MustReadFile

func (h *Harness) MustReadFile(p string) []byte

func (*Harness) TempDir

func (h *Harness) TempDir() string

Jump to

Keyboard shortcuts

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