From 320de746f7a2985b60c8564a0e65bdf231e840b7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Sep 2025 10:56:27 +0300 Subject: use gofumpt --- internal/lsp/chat_no_double_answer_test.go | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'internal/lsp/chat_no_double_answer_test.go') diff --git a/internal/lsp/chat_no_double_answer_test.go b/internal/lsp/chat_no_double_answer_test.go index 9898ad9..8821cd0 100644 --- a/internal/lsp/chat_no_double_answer_test.go +++ b/internal/lsp/chat_no_double_answer_test.go @@ -1,22 +1,21 @@ package lsp import ( - "bytes" - "io" - "log" - "testing" + "bytes" + "io" + "log" + "testing" ) func TestDetectAndHandleChat_NoDoubleAnswer(t *testing.T) { - var out bytes.Buffer - s := &Server{logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), out: &out} - s.llmClient = fakeLLM{resp: "IGNORED"} - uri := "file:///x.go" - // Question line with trigger, followed by an existing answer line starting with '>' - s.setDocument(uri, "What?>\n> already answered\n") - s.detectAndHandleChat(uri) - if out.Len() != 0 { - t.Fatalf("expected no applyEdit request when answer exists; got %d bytes", out.Len()) - } + var out bytes.Buffer + s := &Server{logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), out: &out} + s.llmClient = fakeLLM{resp: "IGNORED"} + uri := "file:///x.go" + // Question line with trigger, followed by an existing answer line starting with '>' + s.setDocument(uri, "What?>\n> already answered\n") + s.detectAndHandleChat(uri) + if out.Len() != 0 { + t.Fatalf("expected no applyEdit request when answer exists; got %d bytes", out.Len()) + } } - -- cgit v1.2.3