Add more error checks

This commit is contained in:
Alexander Neumann committed 2021-01-30 20:02:37 +01:00
1 parent cbd88c457a
commit 200f09522d
11 files changed
+63 -24

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@ import (
func TestEmptySnapshotGroupJSON(t *testing.T) {
for _, grouped := range []bool{false, true} {
var w strings.Builder
printSnapshotGroupJSON(&w, nil, grouped)
err := printSnapshotGroupJSON(&w, nil, grouped)
rtest.OK(t, err)
rtest.Equals(t, "[]", strings.TrimSpace(w.String()))
}