Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools / gopls@v0.5.2 / doc / generate_test.go
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package main
6
7 import (
8         "testing"
9
10         "golang.org/x/tools/internal/testenv"
11 )
12
13 func TestGenerated(t *testing.T) {
14         testenv.NeedsGoBuild(t) // This is a lie. We actually need the source code.
15
16         ok, err := doMain("../..", false)
17         if err != nil {
18                 t.Fatal(err)
19         }
20         if !ok {
21                 t.Error("documentation needs updating. run: `go run gopls/doc/generate.go` from the root of tools.")
22         }
23 }