From 891136c65d7c55f245d645bc39f40232d066c77d Mon Sep 17 00:00:00 2001 From: kami Date: Fri, 31 Jul 2026 21:34:03 +0400 Subject: [PATCH] gofmt the kiwix client and rewrite test PR #41 and #44 landed these two files unformatted, so the gofmt gate that PR #12 added to `make test` failed as soon as both were on one branch. Struct-tag and comment alignment only, no semantic change. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01CGeSZxh1DCtRxmFVSYVGvJ --- internal/kiwix/client.go | 2 +- internal/kiwix/rewrite_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/kiwix/client.go b/internal/kiwix/client.go index 5b4e607..d32f264 100644 --- a/internal/kiwix/client.go +++ b/internal/kiwix/client.go @@ -82,7 +82,7 @@ type rss struct { Description struct { Inner string `xml:",innerxml"` } `xml:"description"` - WordCount string `xml:"wordCount"` + WordCount string `xml:"wordCount"` } `xml:"channel>item"` } diff --git a/internal/kiwix/rewrite_test.go b/internal/kiwix/rewrite_test.go index e9cd43e..6efdae6 100644 --- a/internal/kiwix/rewrite_test.go +++ b/internal/kiwix/rewrite_test.go @@ -81,7 +81,7 @@ func TestRewriteConstrainsTheCall(t *testing.T) { func TestRewriteRejectsBadModelOutput(t *testing.T) { bad := []string{ `{"query":"почему небо синее"}`, // never translated - `{"query":""}`, // empty + `{"query":""}`, // empty `{"query":"the sky is blue because sunlight is scattered by air"}`, // an answer // Note: a SHORT English prose fragment ("Let me analyze this request") // is under the word cap and cannot be caught here. The grammar is what