- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for mindig (0.2 sec)
-
tests/update_test.go
} var results []User if err := DB.Preload("Account").Find(&results, []uint{users[0].ID, users[1].ID}).Error; err != nil { t.Errorf("Not error should happen when finding users, but got %v", err) } for _, user := range results { if user.Name != user.Account.Number { t.Errorf("user's name should be equal to the account's number %v, but got %v", user.Account.Number, user.Name)
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Dec 04 03:50:58 GMT 2023 - 30.3K bytes - Viewed (0) -
tests/query_test.go
if len(results2) != 0 { t.Errorf("Search all records with inline map containing null value finding 0 records") } DB.Find(&results2, map[string]interface{}{"name": users[0].Name, "company_id": nil}) if len(results2) != 1 { t.Errorf("Search all records with inline map containing null value finding 1 record") }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Apr 25 12:22:53 GMT 2024 - 49.8K bytes - Viewed (0)