testinputs

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 18 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

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