func assertConfigEqualToJSON( c1 types.Config, j2 string, t *testing.T) (types.Config, types.Config, bool) { var err error var j1 string if j1, err = c1.ToJSON(); err != nil { t.Error(err) return nil, nil, false } return assertJSONEqual(j1, j2, t) }