MCPcopy
hub / github.com/go-gorm/gorm / checkField

Function checkField

schema/schema_helper_test.go:235–242  ·  view source on GitHub ↗
(t *testing.T, s *schema.Schema, value reflect.Value, values map[string]interface{})

Source from the content-addressed store, hash-verified

233}
234
235func 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}

Calls 1

AssertEqualFunction · 0.92

Tested by

no test coverage detected