aboutsummaryrefslogtreecommitdiff
path: root/ssh/test
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2015-02-01 17:57:17 +1100
committerDave Cheney <dave@cheney.net>2015-02-02 06:42:08 +0000
commit7db43667c77d5d330c359ffd03f5789cf390e973 (patch)
tree01a40425277e5e73ea9904df13e5616f4342d764 /ssh/test
parentbfc286917c5fcb7420d7e3092b50bbfd31b38a98 (diff)
downloadgo-x-crypto-7db43667c77d5d330c359ffd03f5789cf390e973.tar.xz
ssh: make godoc examples easier to reuse
Fixes golang/go#9747 Move the example tests to an external test package so that they must explicitly reference the ssh package. The side effect is the examples now become easier to copy and paste. Change-Id: Ibbddea42bc5a41d11ffdef5144d9884ef3ef603f Reviewed-on: https://go-review.googlesource.com/3710 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'ssh/test')
-rw-r--r--ssh/test/session_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh/test/session_test.go b/ssh/test/session_test.go
index 0b7892b..846f580 100644
--- a/ssh/test/session_test.go
+++ b/ssh/test/session_test.go
@@ -11,10 +11,11 @@ package test
import (
"bytes"
"errors"
- "golang.org/x/crypto/ssh"
"io"
"strings"
"testing"
+
+ "golang.org/x/crypto/ssh"
)
func TestRunCommandSuccess(t *testing.T) {