- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCreateWithExistingTimestamp (0.15 sec)
-
tests/create_test.go
} if err := DB.Create(&users).Error; !errors.Is(err, gorm.ErrInvalidData) { t.Errorf("should returns error invalid data when creating from slice that contains invalid data") } } func TestCreateWithExistingTimestamp(t *testing.T) { user := User{Name: "CreateUserExistingTimestamp"} curTime := now.MustParse("2016-01-01") user.CreatedAt = curTime user.UpdatedAt = curTime DB.Save(&user)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0)