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

codegentest

package
v1.58.7 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, fn func(*codegen.Generator, *app.Desc))

func RunDir added in v1.58.7

func RunDir(t *testing.T, dir string, fn func(*codegen.Generator, *app.Desc))

RunDir is like Run but reads the test cases from dir.

Types

type Case

type Case struct {
	Name     string
	Code     string
	Want     map[string]string // file name -> contents
	WantErrs []string
}

Jump to

Keyboard shortcuts

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