summaryrefslogtreecommitdiff
path: root/internal/lsp/log_context_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/log_context_test.go')
-rw-r--r--internal/lsp/log_context_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/lsp/log_context_test.go b/internal/lsp/log_context_test.go
new file mode 100644
index 0000000..0bc4ed3
--- /dev/null
+++ b/internal/lsp/log_context_test.go
@@ -0,0 +1,15 @@
+package lsp
+
+import (
+ "io"
+ "log"
+ "testing"
+)
+
+func TestLogCompletionContext(t *testing.T) {
+ s := newTestServer()
+ s.logger = log.New(io.Discard, "", 0)
+ p := CompletionParams{TextDocument: TextDocumentIdentifier{URI: "file:///x"}, Position: Position{Line:1, Character:2}}
+ s.logCompletionContext(p, "a", "b", "c", "f")
+}
+