goldentest

package
v0.0.0-...-3b147a8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoldenTestOption

type GoldenTestOption func(*GoldenTests)

func WithDataFiles

func WithDataFiles(files ...bazel.RunfileEntry) GoldenTestOption

func WithExtraArgs

func WithExtraArgs(args ...string) GoldenTestOption

func WithOnlyTests

func WithOnlyTests(tests ...string) GoldenTestOption

type GoldenTests

type GoldenTests struct {
	// contains filtered or unexported fields
}

GoldenTests is a helper for running glob(["testdata/**"]) style test setups.

func FromDir

func FromDir(extensionDir string, options ...GoldenTestOption) *GoldenTests

FromDir construct a GoldenTests tester that searches the given directory.

func (*GoldenTests) Run

func (g *GoldenTests) Run(t *testing.T, gazelleName string)

Jump to

Keyboard shortcuts

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