From ccb1d784be581295c0785b1741eb18fcf313951d Mon Sep 17 00:00:00 2001 From: kami Date: Sun, 5 Jul 2026 02:40:52 +0400 Subject: [PATCH] auth: add RevertFact method to recordingAPI test helper recordingAPI did not implement the new CoreAPI.RevertFact method added in a02e10f, causing a build failure in auth tests. Also adds coverage.out to .gitignore. --- .gitignore | 3 +++ internal/auth/auth_test.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index a9fce89..ba1d561 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ deploy/db_key.env # opencode config (per-project, not for sharing) opencode.json + +# Test coverage output +coverage.out diff --git a/internal/auth/auth_test.go b/internal/auth/auth_test.go index 6625263..875ffce 100644 --- a/internal/auth/auth_test.go +++ b/internal/auth/auth_test.go @@ -379,6 +379,10 @@ func (r *recordingAPI) ListTools(_ context.Context, _ string) ([]ipc.Tool, error return nil, nil } +func (r *recordingAPI) RevertFact(_ context.Context, _ string) (int64, error) { + return 0, nil +} + // mustWriteFactParams — minimal WriteFactReq JSON with only the source field, // matching what ipc.dispatch hands to Server.Check (the raw params frame). func mustWriteFactParams(source string) []byte {