From bf53cf2a673af254d7a08bc3b2ab815a08f66117 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 4 Sep 2025 16:04:58 +0300 Subject: tests: add shared test fixtures, expand provider breadth (multi-choice, error bodies), add LSP rewrite/diagnostics realism and table-driven tests --- internal/lsp/codeaction_more_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/lsp/codeaction_more_test.go') 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}}} -- cgit v1.2.3