summaryrefslogtreecommitdiff
path: root/internal/lsp/log_context_test.go
blob: 0bc4ed3c221e69f46fe1d16064aae6da817b88ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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")
}