From 95e0633abaf5779c17c133f94037f38b73c72d3e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 5 Sep 2025 20:55:01 +0300 Subject: tests: add more negative provider cases and table-driven LSP coverage; assert headers; add indent postprocess test --- internal/lsp/postprocess_indent_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 internal/lsp/postprocess_indent_test.go (limited to 'internal/lsp') diff --git a/internal/lsp/postprocess_indent_test.go b/internal/lsp/postprocess_indent_test.go new file mode 100644 index 0000000..4b4ad2a --- /dev/null +++ b/internal/lsp/postprocess_indent_test.go @@ -0,0 +1,14 @@ +package lsp + +import "testing" + +func TestPostProcessCompletion_IndentWithDoubleSemicolon(t *testing.T) { + s := newTestServer() + cleaned := s.postProcessCompletion("a\nb", "", " ;;gen;") + // Expect each non-empty line to be indented by two spaces + want := " a\n b" + if cleaned != want { + t.Fatalf("got %q want %q", cleaned, want) + } +} + -- cgit v1.2.3