aboutsummaryrefslogtreecommitdiff
path: root/ssh/test
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-02-19 18:54:42 -0500
committerRuss Cox <rsc@golang.org>2021-02-20 03:31:48 +0000
commit5ea612d1eb830b38bc4e914e37f55311eb58adce (patch)
tree273a278dab6c87b85e66b858f564b0bc8a33ba5b /ssh/test
parentb8e89b74b9df40d0d1cd96f441924c545d8d0dea (diff)
downloadgo-x-crypto-5ea612d1eb830b38bc4e914e37f55311eb58adce.tar.xz
all: go fmt ./...
Make all our package sources use Go 1.17 gofmt format (adding //go:build lines). Not strictly necessary but will avoid spurious changes as files are edited. Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Change-Id: I70526bf588bf4078887e567795867ece785d666b Reviewed-on: https://go-review.googlesource.com/c/crypto/+/294415 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'ssh/test')
-rw-r--r--ssh/test/agent_unix_test.go1
-rw-r--r--ssh/test/banner_test.go1
-rw-r--r--ssh/test/cert_test.go1
-rw-r--r--ssh/test/dial_unix_test.go1
-rw-r--r--ssh/test/forward_unix_test.go1
-rw-r--r--ssh/test/multi_auth_test.go1
-rw-r--r--ssh/test/session_test.go1
-rw-r--r--ssh/test/test_unix_test.go1
8 files changed, 8 insertions, 0 deletions
diff --git a/ssh/test/agent_unix_test.go b/ssh/test/agent_unix_test.go
index 5d320d0..9df2b4e 100644
--- a/ssh/test/agent_unix_test.go
+++ b/ssh/test/agent_unix_test.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build aix darwin dragonfly freebsd linux netbsd openbsd
package test
diff --git a/ssh/test/banner_test.go b/ssh/test/banner_test.go
index c3f0a08..f149d6d 100644
--- a/ssh/test/banner_test.go
+++ b/ssh/test/banner_test.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build aix darwin dragonfly freebsd linux netbsd openbsd
package test
diff --git a/ssh/test/cert_test.go b/ssh/test/cert_test.go
index 84ac31e..8506e4b 100644
--- a/ssh/test/cert_test.go
+++ b/ssh/test/cert_test.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build aix darwin dragonfly freebsd linux netbsd openbsd
package test
diff --git a/ssh/test/dial_unix_test.go b/ssh/test/dial_unix_test.go
index 8e1362c..15c34d9 100644
--- a/ssh/test/dial_unix_test.go
+++ b/ssh/test/dial_unix_test.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build !windows && !solaris && !js
// +build !windows,!solaris,!js
package test
diff --git a/ssh/test/forward_unix_test.go b/ssh/test/forward_unix_test.go
index 4c44e57..ab8e639 100644
--- a/ssh/test/forward_unix_test.go
+++ b/ssh/test/forward_unix_test.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build aix darwin dragonfly freebsd linux netbsd openbsd
package test
diff --git a/ssh/test/multi_auth_test.go b/ssh/test/multi_auth_test.go
index f594d36..da8f674 100644
--- a/ssh/test/multi_auth_test.go
+++ b/ssh/test/multi_auth_test.go
@@ -14,6 +14,7 @@
// not exist these tests will be skipped. See compile instructions
// (for linux) in file ./sshd_test_pw.c.
+//go:build linux
// +build linux
package test
diff --git a/ssh/test/session_test.go b/ssh/test/session_test.go
index e363869..d66509b 100644
--- a/ssh/test/session_test.go
+++ b/ssh/test/session_test.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build !windows && !solaris && !js
// +build !windows,!solaris,!js
package test
diff --git a/ssh/test/test_unix_test.go b/ssh/test/test_unix_test.go
index cf62d42..dbd02c7 100644
--- a/ssh/test/test_unix_test.go
+++ b/ssh/test/test_unix_test.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || plan9
// +build aix darwin dragonfly freebsd linux netbsd openbsd plan9
package test