- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestUpdatesTableWithIgnoredValues (0.1 sec)
-
tests/update_test.go
var result User DB.First(&result, user.ID) if result.Name != user.Name || result.Age != 100 { t.Errorf("user's name should not be updated") } } func TestUpdatesTableWithIgnoredValues(t *testing.T) { type ElementWithIgnoredField struct { Id int64 Value string IgnoredField int64 `gorm:"-"` } DB.Migrator().DropTable(&ElementWithIgnoredField{})
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 30.4K bytes - Viewed (0)