1 // Copyright 2019 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.
11 "golang.org/x/tools/gopls/internal/hooks"
12 cmdtest "golang.org/x/tools/internal/lsp/cmd/test"
13 "golang.org/x/tools/internal/lsp/source"
14 "golang.org/x/tools/internal/lsp/tests"
15 "golang.org/x/tools/internal/testenv"
18 func TestMain(m *testing.M) {
19 testenv.ExitIfSmallMachine()
23 func TestCommandLine(t *testing.T) {
24 cmdtest.TestCommandLine(t, "../../internal/lsp/testdata", commandLineOptions)
27 func commandLineOptions(options *source.Options) {
28 options.Staticcheck = true
29 options.GoDiff = false
30 tests.DefaultOptions(options)
31 hooks.Options(options)