mirror of
https://github.com/golang/go
synced 2024-11-17 18:24:45 -07:00
re
This commit is contained in:
parent
b5ac116228
commit
59c5d7ea76
@ -124,13 +124,13 @@ func MustHaveGoBuild(t testing.TB) {
|
||||
}
|
||||
}
|
||||
|
||||
// HasGoRun reports whether the current system can run programs with “go run .”
|
||||
// HasGoRun reports whether the current system can run programs with “go run”.
|
||||
func HasGoRun() bool {
|
||||
// For now, having go run and having go build are the same.
|
||||
return HasGoBuild()
|
||||
}
|
||||
|
||||
// MustHaveGoRun checks that the current system can run programs with “go run .”
|
||||
// MustHaveGoRun checks that the current system can run programs with “go run”.
|
||||
// If not, MustHaveGoRun calls t.Skip with an explanation.
|
||||
func MustHaveGoRun(t testing.TB) {
|
||||
if !HasGoRun() {
|
||||
|
Loading…
Reference in New Issue
Block a user