aboutsummaryrefslogtreecommitdiff
path: root/shared_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-10 10:24:02 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-10 10:30:26 +0100
commit8dfe7249e015e1a03a911d441cab8c4bb0c7d4c9 (patch)
tree709a12ce0c9b5236073b328c56ccf226640372fc /shared_test.go
parent49a15959b15dcaefaff48146a7afabf640934f06 (diff)
downloadgo-schwift-8dfe7249e015e1a03a911d441cab8c4bb0c7d4c9.tar.gz
add tests for container iterator
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, "")
+}