1
0
mirror of https://github.com/ssh-vault/ssh-vault.git synced 2025-07-31 05:24:22 +03:00

add tests for getkey Schlosser

This commit is contained in:
nbari
2016-10-22 23:02:10 +02:00
parent f1a70ec27e
commit 15a8dbcc3b
5 changed files with 86 additions and 4 deletions

15
a_test.go Normal file
View File

@ -0,0 +1,15 @@
package sshvault
import (
"reflect"
"runtime"
"testing"
)
/* Test Helpers */
func expect(t *testing.T, a interface{}, b interface{}) {
_, fn, line, _ := runtime.Caller(1)
if a != b {
t.Errorf("Expected: %v (type %v) Got: %v (type %v) in %s:%d", a, reflect.TypeOf(a), b, reflect.TypeOf(b), fn, line)
}
}