Help us shape the future of Go! Take the 2026 Go Developer Survey

caps

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package caps holds obsdb's read and sweep bounds as obsdb and its backends apply them: the exported constants (obsdb.TreeSpanCap, TreeTraceCap, TreeMissingCap, TreeRowCap, ChildRunsCap, SweepBatch, MaxLogCandidates), the same values, as variables the conformance table (obsdbtest) lowers around a past-the-cap case, so that case writes tens of rows, not tens of thousands, and proves the same behaviour at the lowered bound. Nothing outside a test changes them; caps_test.go pins each to its constant and its released value.

Index

Constants

This section is empty.

Variables

View Source
var (
	TreeSpan      = 10_000 // obsdb.TreeSpanCap
	TreeTrace     = 50_000 // obsdb.TreeTraceCap
	TreeMissing   = 100    // obsdb.TreeMissingCap
	TreeRow       = 10_000 // obsdb.TreeRowCap
	ChildRuns     = 10_000 // obsdb.ChildRunsCap
	SweepBatch    = 500    // obsdb.SweepBatch
	LogCandidates = 10_000 // obsdb.MaxLogCandidates
)

The bounds as read: each equals its obsdb constant.

Functions

func Lower

func Lower(v *int, n int) (restore func())

Lower sets *v to n and returns the restore. A test calls it, and its restore, with no read or sweep running: the variables are plain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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