summaryrefslogtreecommitdiff
path: root/internal/lsp/testfakes_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-29 00:22:39 +0300
committerPaul Buetow <paul@buetow.org>2025-08-29 00:22:39 +0300
commit0c2994f0065090a4884b28dc27eb760db2dfaab3 (patch)
tree687ecd00584feb634a5853f5964028621f0fa1d5 /internal/lsp/testfakes_test.go
parentd35aaa0227334ab0269b0907491c0682841b9cd5 (diff)
lsp: refactor dispatch to handler map; split handlers into feature files (completion, codeaction, init, document); decompose completion logic into small helpers; update review checklist
Diffstat (limited to 'internal/lsp/testfakes_test.go')
-rw-r--r--internal/lsp/testfakes_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/lsp/testfakes_test.go b/internal/lsp/testfakes_test.go
index bfe536e..7887692 100644
--- a/internal/lsp/testfakes_test.go
+++ b/internal/lsp/testfakes_test.go
@@ -1,8 +1,8 @@
package lsp
import (
- "context"
- "hexai/internal/llm"
+ "context"
+ "hexai/internal/llm"
)
// countingLLM counts Chat calls; minimal implementation for tests that need
@@ -10,9 +10,8 @@ import (
type countingLLM struct{ calls int }
func (f *countingLLM) Chat(_ context.Context, _ []llm.Message, _ ...llm.RequestOption) (string, error) {
- f.calls++
- return "x := 1", nil
+ f.calls++
+ return "x := 1", nil
}
func (f *countingLLM) Name() string { return "fake" }
func (f *countingLLM) DefaultModel() string { return "m" }
-