diff options
| author | Kevin Burke <kev@inburke.com> | 2017-11-27 20:39:32 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-11-28 17:48:09 +0000 |
| commit | e8f229864d71a49e5fdc4a9a134c5f85c4c33d64 (patch) | |
| tree | d40198047e72be3bf3c9585764ceae27354a7f0f /ssh/test | |
| parent | 48a5a650cfc529a2517eb6a4d6d6749872520525 (diff) | |
| download | go-x-crypto-e8f229864d71a49e5fdc4a9a134c5f85c4c33d64.tar.xz | |
all: fix errors reported by vet, golint
None are "wrong" per se, but there are a lot of good suggestions and
in one case a docstring that was not present in godoc due to the
presence of an extra newline.
Changed "Id" in struct properties to "ID" in some non-exported
structs. Removed a trailing period from some error messages; I believe
the exact contents of error strings are not covered by the Go
compatibility promise.
Change-Id: I7c620582dc247396f72c52d38c909ccc0ec87b83
Reviewed-on: https://go-review.googlesource.com/80145
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'ssh/test')
| -rw-r--r-- | ssh/test/doc.go | 2 | ||||
| -rw-r--r-- | ssh/test/test_unix_test.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ssh/test/doc.go b/ssh/test/doc.go index 3f9b334..198f0ca 100644 --- a/ssh/test/doc.go +++ b/ssh/test/doc.go @@ -2,6 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// This package contains integration tests for the +// Package test contains integration tests for the // golang.org/x/crypto/ssh package. package test // import "golang.org/x/crypto/ssh/test" diff --git a/ssh/test/test_unix_test.go b/ssh/test/test_unix_test.go index 6b1e0ff..15b879d 100644 --- a/ssh/test/test_unix_test.go +++ b/ssh/test/test_unix_test.go @@ -25,7 +25,7 @@ import ( "golang.org/x/crypto/ssh/testdata" ) -const sshd_config = ` +const sshdConfig = ` Protocol 2 Banner {{.Dir}}/banner HostKey {{.Dir}}/id_rsa @@ -51,7 +51,7 @@ HostbasedAuthentication no PubkeyAcceptedKeyTypes=* ` -var configTmpl = template.Must(template.New("").Parse(sshd_config)) +var configTmpl = template.Must(template.New("").Parse(sshdConfig)) type server struct { t *testing.T @@ -271,7 +271,7 @@ func newServer(t *testing.T) *server { } var authkeys bytes.Buffer - for k, _ := range testdata.PEMBytes { + for k := range testdata.PEMBytes { authkeys.Write(ssh.MarshalAuthorizedKey(testPublicKeys[k])) } writeFile(filepath.Join(dir, "authorized_keys"), authkeys.Bytes()) |
