littest

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Marker        = "LITTEST"
	PostABIMarker = "LITTEST: POST-ABI"
)

Variables

This section is empty.

Functions

func Check

func Check(spec Spec, actual string, targetPrefixes ...string) error

func FindMarkedSourceFile

func FindMarkedSourceFile(dir string) (string, bool, error)

func HasMarker

func HasMarker(path string) (bool, error)

func IsSourceSpecFile

func IsSourceSpecFile(name string) bool

func ReadMarker

func ReadMarker(path string) (postABI, found bool, err error)

ReadMarker reports whether the source's first-line marker selects post-ABI IR. Plain // LITTEST retains the existing check behavior and may carry a space-separated GOOS/GOARCH target matrix. POST-ABI explicitly selects the target-ABI-lowered stage and may also carry a matrix.

Types

type Spec

type Spec struct {
	Path    string
	PostABI bool
	Targets []Target
}

func FindSpec

func FindSpec(dir string) (Spec, bool, error)

FindSpec finds the source-embedded IR check in dir without requiring one.

func LoadSpec

func LoadSpec(pkgDir string) (Spec, error)

type Target

type Target struct {
	GOOS   string
	GOARCH string
}

Target selects one GOOS/GOARCH pair for an IR check.

func (Target) String

func (t Target) String() string

Jump to

Keyboard shortcuts

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