modeltest

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package modeltest provides shared test helpers for model-ref code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearEnv

func ClearEnv(t *testing.T)

ClearEnv isolates the test from the developer's shell by blanking every COG_MODEL* env var. Without this, a shell-exported COG_MODEL_REPO (or similar) would leak into the test process and silently change what ResolveModelRef sees. t.Setenv handles restoration at cleanup; ResolveModelRef treats "" as unset, so blanking is equivalent to unsetting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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