- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestUpdatesTableWithIgnoredValues (0.1 seconds)
-
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{})
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 30.4K bytes - Click Count (0)