summaryrefslogtreecommitdiff
path: root/internal/lsp/testhelper_capture_llm_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-06 13:18:21 +0300
committerPaul Buetow <paul@buetow.org>2025-09-06 13:18:21 +0300
commit5e966f50111adf6e2cb2683fe588f6fe033fa931 (patch)
tree19ac2033483c2ac6147e8f44ac37f14e6a5c0cf7 /internal/lsp/testhelper_capture_llm_test.go
parent80e61812986573464cd24c4b3ffa605c4003146a (diff)
fix unit test coverage
Diffstat (limited to 'internal/lsp/testhelper_capture_llm_test.go')
-rw-r--r--internal/lsp/testhelper_capture_llm_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/lsp/testhelper_capture_llm_test.go b/internal/lsp/testhelper_capture_llm_test.go
index 3274141..2e63ca7 100644
--- a/internal/lsp/testhelper_capture_llm_test.go
+++ b/internal/lsp/testhelper_capture_llm_test.go
@@ -1,18 +1,17 @@
package lsp
import (
- "context"
+ "context"
- "codeberg.org/snonux/hexai/internal/llm"
+ "codeberg.org/snonux/hexai/internal/llm"
)
// captureLLM captures messages sent to Chat for assertions.
type captureLLM struct{ msgs []llm.Message }
func (c *captureLLM) Chat(_ context.Context, m []llm.Message, _ ...llm.RequestOption) (string, error) {
- c.msgs = append([]llm.Message{}, m...)
- return "OK", nil
+ c.msgs = append([]llm.Message{}, m...)
+ return "OK", nil
}
func (*captureLLM) Name() string { return "cap" }
func (*captureLLM) DefaultModel() string { return "m" }
-