1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-04-11 11:02:02 +02:00
go-micro/plugins/registry/nats/assert_test.go
2020-12-26 15:32:45 +00:00

19 lines
343 B
Go

package nats_test
import (
"reflect"
"testing"
)
func assertNoError(tb testing.TB, actual error) {
if actual != nil {
tb.Errorf("expected no error, got %v", actual)
}
}
func assertEqual(tb testing.TB, expected, actual interface{}) {
if !reflect.DeepEqual(expected, actual) {
tb.Errorf("expected %v, got %v", expected, actual)
}
}