summaryrefslogtreecommitdiff
path: root/internal/lsp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-07 11:49:38 +0300
committerPaul Buetow <paul@buetow.org>2025-09-07 11:49:38 +0300
commit5ed470a093ffb7d28c88f9687429f238959935da (patch)
treef4fd4e0bae2e5312de675d9de708c6543f2299e0 /internal/lsp
parent9a901054e8828054f7b26514b72b6e938f97e4a7 (diff)
test: add seams for RunTUI and client; expand hexaiaction tests; cover lsp initialized and testutil fixtures
Diffstat (limited to 'internal/lsp')
-rw-r--r--internal/lsp/handlers_init_more_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/lsp/handlers_init_more_test.go b/internal/lsp/handlers_init_more_test.go
new file mode 100644
index 0000000..230c773
--- /dev/null
+++ b/internal/lsp/handlers_init_more_test.go
@@ -0,0 +1,15 @@
+package lsp
+
+import (
+ "bytes"
+ "log"
+ "testing"
+)
+
+func TestHandleInitialized_Logs(t *testing.T) {
+ // Minimal server with a logger; just ensure it doesn't panic.
+ var buf bytes.Buffer
+ s := NewServer(bytes.NewBuffer(nil), &buf, log.New(&buf, "", 0), ServerOptions{})
+ s.handleInitialized()
+}
+