- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for checkField (0.17 sec)
-
schema/schema_helper_test.go
}, }, r) } } checkEmbeddedRelations(t, relations.EmbeddedRelations, rs.EmbeddedRelations) }) } } func checkField(t *testing.T, s *schema.Schema, value reflect.Value, values map[string]interface{}) { for k, v := range values { t.Run("CheckField/"+k, func(t *testing.T) { fv, _ := s.FieldsByDBName[k].ValueOf(context.Background(), value) tests.AssertEqual(t, v, fv) }) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Dec 15 08:31:23 UTC 2023 - 7.5K bytes - Viewed (0) -
tests/migrate_test.go
NickName string `gorm:"size:70;uniqueIndex:idx_us6_all_names"` } ) checkField(&UniqueStruct5{}, "name", false, "idx_unique_struct5_name") checkField(&UniqueStruct6{}, "name", false, "idx_unique_struct6_name") checkField(&UniqueStruct7{}, "name", false, "") checkField(&UniqueStruct7{}, "nick_name", false, "") checkField(&UniqueStruct7{}, "nick_name", false, "")
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
"metadata": {}, "spec": {}, "status": {}, } serviceProtocolUDP = "UDP" fileExtensions = []string{".json", ".yaml", ".yml"} ) type validator struct{} func checkFields(un *unstructured.Unstructured) error { var errs error for key := range un.Object { if _, ok := validFields[key]; !ok { errs = multierror.Append(errs, fmt.Errorf("unknown field %q", key)) } } return errs
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 22:27:47 UTC 2024 - 14.3K bytes - Viewed (0)