]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/sync_info_test.go
tests: go fmt and rewrap
[safcm/safcm.git] / cmd / safcm / sync_info_test.go
index b883bb75c6e29552e227b1c3c297b8153796060b..e01083bb8172b668c95c108fd113232899eff17b 100644 (file)
@@ -68,10 +68,11 @@ func TestHostInfoRespToGroups(t *testing.T) {
        }
 
        for _, tc := range tests {
-               res := hostInfoRespToGroups(tc.resp)
-               if !reflect.DeepEqual(tc.exp, res) {
-                       t.Errorf("%s: res: %s", tc.name,
-                               cmp.Diff(tc.exp, res))
-               }
+               t.Run(tc.name, func(t *testing.T) {
+                       res := hostInfoRespToGroups(tc.resp)
+                       if !reflect.DeepEqual(tc.exp, res) {
+                               t.Errorf("res: %s", cmp.Diff(tc.exp, res))
+                       }
+               })
        }
 }