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 gocommand_test |
6 | |
7 | import ( |
8 | "context" |
9 | "testing" |
10 | |
11 | "golang.org/x/tools/internal/gocommand" |
12 | ) |
13 | |
14 | func 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 |
Members