- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for company_idempotent (0.08 sec)
-
tests/update_test.go
if result.Name != "new company name" { t.Errorf("name should be %v, but got %v", user.Company.Name, result.Name) } } func TestIdempotentSave(t *testing.T) { create := Company{ Name: "company_idempotent", } DB.Create(&create) var company Company if err := DB.Find(&company, "id = ?", create.ID).Error; err != nil { t.Fatalf("failed to find created company, got err: %v", err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0)