testctx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package testctx implements the shared test-context predicate (DESIGN.md section 6.4): one definition of "non-production", computed on the slash-separated path relative to the project root, shared by every check and every extractor. Root-relative matching is deliberate — a production src/test/ directory is not test code (lesson 6).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTestContext

func IsTestContext(relPath string) bool

IsTestContext reports whether the file at relPath (relative to the project root, slash-separated) is test code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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