testgate

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 2 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 testgate separates a test that could not run here from a test that passed.

A skipped test and a passing test both print ok, and a gate that inherits the package result prints ok too. That is fine for an ordinary run on a developer machine without a browser, and it is exactly what a release run may not do: the one thing a release gate is for is refusing to report a claim it did not check. scripts/check.sh already makes that distinction for the official client, the portable clients, and the Python sidecars; this package is the same rule for every Go test that needs a tool the host may lack, so the distinction is made once rather than reinvented, or forgotten, per package.

Index

Constants

View Source
const Variable = "OPENREALTIME_RELEASE_GATE"

Variable is the environment variable that turns a run into a release gate. Any non-empty value counts, which is the rule scripts/check.sh applies.

Variables

This section is empty.

Functions

func Missing

func Missing(t testing.TB, requirement string)

Missing marks a test that needs a tool this host does not have: node, chromium, ffmpeg, python3, git. Outside release mode it skips and names the tool; in release mode it fails, because the release gate installs those tools and a missing one is a broken gate, not an optional claim.

func Release

func Release() bool

Release reports whether this run is a release gate.

func Unprepared

func Unprepared(t testing.TB, resource string, err error)

Unprepared marks a test that needs a provisioned input no gate installs: a pinned dataset, a local model runtime. It always skips, because the claim belongs to the provisioned benchmark gate that supplies the input, but it says so in the same words every time so a recorded skip reads as an unverified claim rather than as a passing package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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