mirror of
https://github.com/ssh-vault/ssh-vault.git
synced 2025-07-03 03:22:34 +03:00
16 lines
315 B
Go
16 lines
315 B
Go
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)
|
|
}
|
|
}
|