testbudget

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 3 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 testbudget scales the NFR time budgets to the machine that runs the test. SDD §13.1 measures the NFR timings on an Apple Silicon laptop, so the reference budget applies to a developer machine and a wider ceiling applies under CI. The wider ceiling still catches a gross regression while tolerating a shared runner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Budget

func Budget(reference time.Duration, factor int) time.Duration

Budget returns reference on the reference machine, or reference scaled by factor elsewhere.

func Reference

func Reference() bool

Reference reports whether this machine is the NFR reference machine and not CI.

Types

This section is empty.

Jump to

Keyboard shortcuts

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