testutil

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNamedType

func FindNamedType(name string, tdata Testdata) (*types.Named, token.Pos)

Types

type Testdata

type Testdata struct {
	Fset  *token.FileSet
	Files []*ast.File
	Defs  map[*ast.Ident]types.Object
}

func ParseTestdata

func ParseTestdata(dir string) Testdata

ParseTestdata parses go files in the specified directory. Regardless of the package path, the package name of those files should be "testdata".

Jump to

Keyboard shortcuts

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