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:
15
a_test.go
Normal file
15
a_test.go
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user