diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-01-05 23:28:26 +0000 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-01-05 23:28:26 +0000 |
commit | 9e9a7d50970f1424245d88169de82988fd57e112 (patch) | |
tree | 25aca2f5e18fe3ff454af34d5d75f8c5204d81fb /server/util/util_test.go | |
parent | 8066efd45861e7c024fc1daabc6d002266a527e7 (diff) |
Move GetPublicKey to the shared `lib` package
Diffstat (limited to 'server/util/util_test.go')
-rw-r--r-- | server/util/util_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/server/util/util_test.go b/server/util/util_test.go deleted file mode 100644 index d294d86..0000000 --- a/server/util/util_test.go +++ /dev/null @@ -1,16 +0,0 @@ -package util - -import ( - "testing" - - "github.com/nsheridan/cashier/testdata" - "golang.org/x/crypto/ssh" -) - -func TestGetPublicKey(t *testing.T) { - t.Parallel() - c, _, _, _, _ := ssh.ParseAuthorizedKey(testdata.Cert) - if GetPublicKey(c.(*ssh.Certificate)) != string(testdata.Cert) { - t.Fail() - } -} |