testing/

directory
v19.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT

README

This package contains utilities for testing, including mocks for third-party libraries.

Directories

Path Synopsis
Package flowtest provides the workload abstraction for AutoFlow and autocore testing: a Unit describes one workflow test (how to start it, how to drive it from the outside, and what outcome to expect), a Source produces Units, and the loadtest driver executes them.
Package flowtest provides the workload abstraction for AutoFlow and autocore testing: a Unit describes one workflow test (how to start it, how to drive it from the outside, and what outcome to expect), a Source produces Units, and the loadtest driver executes them.
corpus
Package corpus holds the pre-defined AutoFlow Units of the flowtest workload.
Package corpus holds the pre-defined AutoFlow Units of the flowtest workload.
flowgen
Package flowgen generates flowtest Units outcome-first: a typed plan is drawn from a seeded, weighted block grammar, and the Starlark script, the drive ops and the expectation all derive from that one plan, so every generated flow is self-validating by construction.
Package flowgen generates flowtest Units outcome-first: a typed plan is drawn from a seeded, weighted block grammar, and the Starlark script, the drive ops and the expectation all derive from that one plan, so every generated flow is self-validating by construction.
ledger
Package ledger is the loadtest driver's durable record of executed sessions: the authoritative client-side observation a later verifier consumes.
Package ledger is the loadtest driver's durable record of executed sessions: the authoritative client-side observation a later verifier consumes.
loadtestmodule
Package loadtestmodule provides a compiled-in AutoFlow module for testing.
Package loadtestmodule provides a compiled-in AutoFlow module for testing.
oracle
Package oracle verifies invariants over the observation channels a flowtest run leaves behind.
Package oracle verifies invariants over the observation channels a flowtest run leaves behind.
oracle/cmd/docgen command
Command docgen writes the flowtest invariant catalog rendered from the oracle registry.
Command docgen writes the flowtest invariant catalog rendered from the oracle registry.
stubbackend
Package stubbackend stands in for the external systems the real built-in AutoFlow modules talk to, inside the process that runs them: an HTTP server in place of the GitLab REST API and a counting sink in place of the events platform.
Package stubbackend stands in for the external systems the real built-in AutoFlow modules talk to, inside the process that runs them: an HTTP server in place of the GitLab REST API and a counting sink in place of the events platform.
testkitmodule
Package testkitmodule provides the compiled-in "testkit" AutoFlow module for generated test flows: deterministic actions whose side effects the flowtest oracle can verify against the session ledger.
Package testkitmodule provides the compiled-in "testkit" AutoFlow module for generated test flows: deterministic actions whose side effects the flowtest oracle can verify against the session ledger.
Package mock_agent2kas_router is a generated GoMock package.
Package mock_agent2kas_router is a generated GoMock package.
Package mock_agent_tracker is a generated GoMock package.
Package mock_agent_tracker is a generated GoMock package.
Package mock_autocore is a generated GoMock package.
Package mock_autocore is a generated GoMock package.
Package mock_autoflow is a generated GoMock package.
Package mock_autoflow is a generated GoMock package.
Package mock_cache is a generated GoMock package.
Package mock_cache is a generated GoMock package.
Package mock_cmd_agent is a generated GoMock package.
Package mock_cmd_agent is a generated GoMock package.
Package mock_event_tracker is a generated GoMock package.
Package mock_event_tracker is a generated GoMock package.
Package mock_flowcore is a generated GoMock package.
Package mock_flowcore is a generated GoMock package.
Package mock_gitaly is a generated GoMock package.
Package mock_gitaly is a generated GoMock package.
Package mock_gitlab_access is a generated GoMock package.
Package mock_gitlab_access is a generated GoMock package.
Package mock_internalgitaly is a generated GoMock package.
Package mock_internalgitaly is a generated GoMock package.
Package mock_k8s is a generated GoMock package.
Package mock_k8s is a generated GoMock package.
Package mock_kubernetes_api is a generated GoMock package.
Package mock_kubernetes_api is a generated GoMock package.
Package mock_modagent is a generated GoMock package.
Package mock_modagent is a generated GoMock package.
Package mock_modserver is a generated GoMock package.
Package mock_modserver is a generated GoMock package.
Package mock_modshared is a generated GoMock package.
Package mock_modshared is a generated GoMock package.
Package mock_otel is a generated GoMock package.
Package mock_otel is a generated GoMock package.
Package mock_redis is a generated GoMock package.
Package mock_redis is a generated GoMock package.
Package mock_rpc is a generated GoMock package.
Package mock_rpc is a generated GoMock package.
Package mock_stdlib is a generated GoMock package.
Package mock_stdlib is a generated GoMock package.
Package mock_tool is a generated GoMock package.
Package mock_tool is a generated GoMock package.
Package mock_tunnel_rpc is a generated GoMock package.
Package mock_tunnel_rpc is a generated GoMock package.
Package mock_tunnel_tunserver is a generated GoMock package.
Package mock_tunnel_tunserver is a generated GoMock package.
Package mock_usage_metrics is a generated GoMock package.
Package mock_usage_metrics is a generated GoMock package.
helper
Package helper (imported as testautocore_helper) provides low-level SQL assertions and mutations used by autocore tests.
Package helper (imported as testautocore_helper) provides low-level SQL assertions and mutations used by autocore tests.
Package testk8s provides a fake Kubernetes cluster API for tests.
Package testk8s provides a fake Kubernetes cluster API for tests.
Package testotel provides helpers for asserting on OpenTelemetry metrics in tests.
Package testotel provides helpers for asserting on OpenTelemetry metrics in tests.

Jump to

Keyboard shortcuts

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