some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / internal / lsp / cmd / test / links.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/cmd/test/links.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/cmd/test/links.go
deleted file mode 100644 (file)
index 88df768..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2019 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package cmdtest
-
-import (
-       "encoding/json"
-       "testing"
-
-       "golang.org/x/tools/internal/lsp/protocol"
-       "golang.org/x/tools/internal/lsp/tests"
-       "golang.org/x/tools/internal/span"
-)
-
-func (r *runner) Link(t *testing.T, uri span.URI, wantLinks []tests.Link) {
-       m, err := r.data.Mapper(uri)
-       if err != nil {
-               t.Fatal(err)
-       }
-       out, _ := r.NormalizeGoplsCmd(t, "links", "-json", uri.Filename())
-       var got []protocol.DocumentLink
-       err = json.Unmarshal([]byte(out), &got)
-       if err != nil {
-               t.Fatal(err)
-       }
-       if diff := tests.DiffLinks(m, wantLinks, got); diff != "" {
-               t.Error(diff)
-       }
-}