summaryrefslogtreecommitdiff
path: root/internal/lsp/codeaction_more_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/codeaction_more_test.go')
-rw-r--r--internal/lsp/codeaction_more_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/lsp/codeaction_more_test.go b/internal/lsp/codeaction_more_test.go
index 387afb5..412d988 100644
--- a/internal/lsp/codeaction_more_test.go
+++ b/internal/lsp/codeaction_more_test.go
@@ -5,11 +5,12 @@ import (
"path/filepath"
"strings"
"testing"
+ tut "codeberg.org/snonux/hexai/internal/testutil"
)
func TestBuildDocumentCodeAction_AndResolve(t *testing.T) {
s := newTestServer()
- s.llmClient = fakeLLM{resp: "// doc\nfunc add(a,b int) int { return a+b }"}
+ s.llmClient = fakeLLM{resp: tut.MultilineDocBlock()+"\n"+"func add(a,b int) int { return a+b }"}
uri := "file:///doc.go"
s.setDocument(uri, "package x\nfunc add(a,b int) int {return a+b}")
p := CodeActionParams{TextDocument: TextDocumentIdentifier{URI: uri}, Range: Range{Start: Position{Line:1, Character:0}, End: Position{Line:1, Character:10}}}