toolstest

package
v0.2.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 9 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 toolstest builds a synthetic data dir for tests of the typed tools and the MCP server.

Index

Constants

View Source
const (
	TraceID      = "0102030405060708090a0b0c0d0e0f10"
	OtherTraceID = "ffffffffffffffffffffffffffffffff"
	LongBodyLen  = 2500
	LongAttrLen  = 5000
)

Variables

View Source
var Now = time.Date(2026, 6, 15, 12, 0, 0, 0, time.UTC)

Functions

func Fixture

func Fixture(t *testing.T) string

Fixture writes two services ("agent" and "web") with logs and spans, including records older than 24h, and returns the data dir.

func FixtureBulkLogs

func FixtureBulkLogs(t *testing.T, n int) string

FixtureBulkLogs is Fixture plus n extra recent "bulk" logs (each with a 1500-char attr) in the agent service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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