- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testMask (0.24 sec)
-
callbacks/helper_test.go
}, }, } for _, tc := range testCase { t.Run(tc.name, func(t *testing.T) { actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input) if !reflect.DeepEqual(actual, tc.expect) { t.Errorf("expect %v got %v", tc.expect, actual) } }) } } func TestConvertSliceOfMapToValuesForCreate(t *testing.T) { testCase := []struct { name string input []map[string]interface{}
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Tue Mar 05 02:22:57 GMT 2024 - 3.4K bytes - Viewed (0) -
tests/migrate_test.go
type UniqueStruct8 struct { // unique and uniqueIndex Name string `gorm:"size:60;unique;index:my_us8_index,unique;"` } checkField(&UniqueStruct8{}, "name", true, "my_us8_index") type TestCase struct { name string from, to interface{} checkFunc func(t *testing.T) } checkColumnType := func(t *testing.T, fieldName string, unique bool) {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Mar 18 11:24:16 GMT 2024 - 56.2K bytes - Viewed (0)