mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-14 04:05:17 +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)
|
|
}
|
|
}
|