aboutsummaryrefslogtreecommitdiff
path: root/shared_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'shared_test.go')
-rw-r--r--shared_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared_test.go b/shared_test.go
index 04481d4..1e7130e 100644
--- a/shared_test.go
+++ b/shared_test.go
@@ -121,6 +121,13 @@ func expectFloat64(t *testing.T, actual float64, expected float64) {
}
}
+func expectInt(t *testing.T, actual int, expected int) {
+ t.Helper()
+ if actual != expected {
+ t.Errorf("expected value %d, got %d instead\n", expected, actual)
+ }
+}
+
func expectUint64(t *testing.T, actual uint64, expected uint64) {
t.Helper()
if actual != expected {
@@ -180,3 +187,7 @@ func expectHeaders(t *testing.T, actual map[string]string, expected map[string]s
}
}
}
+
+func expectSuccess(t *testing.T, actual error) (ok bool) {
+ return expectError(t, actual, "")
+}