GoPLS Viewer

Home|gopls/internal/gocommand/invoke_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
5package gocommand_test
6
7import (
8    "context"
9    "testing"
10
11    "golang.org/x/tools/internal/gocommand"
12)
13
14func TestGoVersion(t *testing.T) {
15    inv := gocommand.Invocation{
16        Verb"version",
17    }
18    gocmdRunner := &gocommand.Runner{}
19    if _err := gocmdRunner.Run(context.Background(), inv); err != nil {
20        t.Error(err)
21    }
22}
23
MembersX
TestGoVersion
TestGoVersion.t
TestGoVersion.inv
TestGoVersion.gocmdRunner
TestGoVersion._
TestGoVersion.err
testing
gocommand
Members
X