summaryrefslogtreecommitdiff
path: root/internal/lsp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-05 20:55:01 +0300
committerPaul Buetow <paul@buetow.org>2025-09-05 20:55:01 +0300
commit95e0633abaf5779c17c133f94037f38b73c72d3e (patch)
tree64c11d662aa9e1cb2ea94ccdd6c452d53dbf71e6 /internal/lsp
parentd99bdf981dbee7e038e4a8e262504c1a15047c38 (diff)
tests: add more negative provider cases and table-driven LSP coverage; assert headers; add indent postprocess test
Diffstat (limited to 'internal/lsp')
-rw-r--r--internal/lsp/postprocess_indent_test.go14
1 files changed, 14 insertions, 0 deletions
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)
+ }
+}
+