testhelpers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestPackage

func CreateTestPackage(input string) (*packages.Package, *ast.File, *token.FileSet, []byte, error)

CreateTestPackage creates a minimal package from Go source code for testing Returns the package, parsed file, fileset, and original data The file is written to a temporary location so os.ReadFile works in rules

Types

This section is empty.

Jump to

Keyboard shortcuts

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