2020-03-30 10:17:16 -06:00
|
|
|
// Copyright 2020 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 gocommand_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"golang.org/x/tools/internal/gocommand"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGoVersion(t *testing.T) {
|
|
|
|
inv := gocommand.Invocation{
|
|
|
|
Verb: "version",
|
|
|
|
}
|
2020-03-23 06:35:36 -06:00
|
|
|
gocmdRunner := &gocommand.Runner{}
|
|
|
|
if _, err := gocmdRunner.Run(context.Background(), inv); err != nil {
|
2020-03-30 10:17:16 -06:00
|
|
|
t.Error(err)
|
|
|
|
}
|
|
|
|
}
|