- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSupportedDialectorWithErrDuplicatedKey (0.18 sec)
-
tests/error_translator_test.go
err = db.AddError(untranslatedErr) if !errors.Is(err, translatedErr) { t.Fatalf("expected err: %v got err: %v", translatedErr, err) } } func TestSupportedDialectorWithErrDuplicatedKey(t *testing.T) { type City struct { gorm.Model Name string `gorm:"unique"` } db, err := OpenTestConnection(&gorm.Config{TranslateError: true}) if err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 12 13:21:22 UTC 2023 - 3.1K bytes - Viewed (0)