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

testinputs

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package testinputs fingerprints external child-test inputs which Go's ordinary test cache cannot track across module roots. It reads sources and selected tools, never application environment files, credential stores or private caches.

Index

Constants

View Source
const Variable = "FOUNDRY_TEST_INPUTS"

Variables

This section is empty.

Functions

func Compute

func Compute(ctx context.Context, root string, identity []string, tools []Tool) (string, error)

Compute is deterministic across timestamp-only changes. Source symlinks are rejected instead of silently omitting outside-workspace child dependencies. Tools are explicit caller-selected files/trees and may live outside the repo.

func StandardImporter added in v0.3.0

func StandardImporter() types.Importer

StandardImporter returns a types.Importer for standard library packages. Under -trimpath, runtime.GOROOT() is empty so build.Default.GOROOT must be resolved from go env GOROOT before using importer.Default().

Types

type Tool

type Tool struct {
	Name, Path string
	Tree       bool
}

Jump to

Keyboard shortcuts

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