testutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestPass

func CreateTestPass(t *testing.T, pkgName string) *analysis.Pass

CreateTestPass creates a minimal analysis.Pass for testing @testonly

func GetIntegrationTestdataPath

func GetIntegrationTestdataPath() string

GetIntegrationTestdataPath returns the path to the integration testdata directory @testonly

func GetRootTestdataPath

func GetRootTestdataPath() string

GetRootTestdataPath returns the path to the root testdata directory @testonly

func GetUnitTestdataPath

func GetUnitTestdataPath() string

GetUnitTestdataPath returns the path to the unit testdata directory @testonly

func LoadPackageByPath

func LoadPackageByPath(t *testing.T, pkgPath string) *analysis.Pass

LoadPackageByPath loads a package by its full path for testing @testonly

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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