Documentation
¶
Overview ¶
Package purgetest seeds and inspects the Spec 116 removal purge set (data-model.md §PurgeSet) for tests. It reads bbolt directly with its own key-match rules, independent of the production purge, so a test that uses it checks the purge rather than restating it.
Index ¶
- Constants
- func AssertPurged(t *testing.T, mgr *storage.Manager, name, path string)
- func AssertSeeded(t *testing.T, mgr *storage.Manager, name string)
- func Counts(t *testing.T, mgr *storage.Manager, name string) map[string]int
- func OAuthKey(name string) string
- func Seed(t *testing.T, mgr *storage.Manager, name string)
Constants ¶
View Source
const ( Upstream = "upstreams" Identities = "server_identities" ToolCalls = "tool_call_buckets" ToolApprovals = "tool_approvals" PromptApprovals = "prompt_approvals" OAuthTokens = "oauth_tokens" OAuthCompletion = "oauth_completion" Baselines = "integrity_baselines" ScanReports = "security_reports" ScanJobs = "security_scan_jobs" ScanJobIndex = "security_scan_job_index" ToolHash = "toolhash" ToolBaseline = "tool_baseline_decisions" )
Bucket labels used in Counts.
Variables ¶
This section is empty.
Functions ¶
func AssertPurged ¶
AssertPurged fails the test for every purge-set bucket that still holds a key of name.
func AssertSeeded ¶
AssertSeeded fails the test unless every seeded bucket holds at least one key of name (the fixture precondition).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.