(t *testing.T, s *schema.Schema, value reflect.Value, values map[string]interface{})
| 233 | } |
| 234 | |
| 235 | func checkField(t *testing.T, s *schema.Schema, value reflect.Value, values map[string]interface{}) { |
| 236 | for k, v := range values { |
| 237 | t.Run("CheckField/"+k, func(t *testing.T) { |
| 238 | fv, _ := s.FieldsByDBName[k].ValueOf(context.Background(), value) |
| 239 | tests.AssertEqual(t, v, fv) |
| 240 | }) |
| 241 | } |
| 242 | } |
no test coverage detected