testhelpers/

directory
v0.115.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0

Directories

Path Synopsis
Package fakeexec provides an in-memory fake for the command-runner seam used across the fleet to shell out to git / go / docker:
Package fakeexec provides an in-memory fake for the command-runner seam used across the fleet to shell out to git / go / docker:
Package fakegraph captures graph.Event values for use in tests.
Package fakegraph captures graph.Event values for use in tests.
Package fakekey provides an in-memory implementation of the apikey.Verifier interface for use in tests.
Package fakekey provides an in-memory implementation of the apikey.Verifier interface for use in tests.
Package httpmock provides canonical httptest.Server factories for common fleet upstream patterns.
Package httpmock provides canonical httptest.Server factories for common fleet upstream patterns.
Package leakcheck fails a test that leaves goroutines running.
Package leakcheck fails a test that leaves goroutines running.
Package promxtest tests that a Prometheus collector cannot be made to create an unbounded number of series: it drives hostile label values through the collector and counts what the registry would hand Prometheus.
Package promxtest tests that a Prometheus collector cannot be made to create an unbounded number of series: it drives hostile label values through the collector and counts what the registry would hand Prometheus.
Package ssrfcorpus is one shared table of server-side-request-forgery probe targets, for testing any code that decides whether a host may be contacted: safehttp's guard, egressproxy's guard, a fetcher's default client.
Package ssrfcorpus is one shared table of server-side-request-forgery probe targets, for testing any code that decides whether a host may be contacted: safehttp's guard, egressproxy's guard, a fetcher's default client.
Package testclock re-exports clock.NewMock and clock.Mock for use in tests without importing the full clock package.
Package testclock re-exports clock.NewMock and clock.Mock for use in tests without importing the full clock package.

Jump to

Keyboard shortcuts

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