mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-11 02:35:18 +00:00
20 lines
264 B
Go
20 lines
264 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func AssertNilError(t *testing.T, err error) {
|
|
t.Helper()
|
|
if err != nil {
|
|
t.Errorf("unexpected error: %v", err)
|
|
}
|
|
}
|
|
|
|
func ExpectError(t *testing.T, err error, msg string) {
|
|
t.Helper()
|
|
if err == nil {
|
|
t.Error(msg)
|
|
}
|
|
}
|