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.
This commit is contained in:
kami
2026-07-05 02:40:52 +04:00
parent ffef44f7bb
commit ccb1d784be
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -27,3 +27,6 @@ deploy/db_key.env
# opencode config (per-project, not for sharing)
opencode.json
# Test coverage output
coverage.out
+4
View File
@@ -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 {