- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestInvalidAssociation (1.4 sec)
-
tests/associations_test.go
} if newUser.ID != 0 { if count := DB.Model(&newUser).Association(name).Count(); count != result { t.Fatalf("invalid %v count %v, expects: %v got %v", name, reason, result, count) } } } func TestInvalidAssociation(t *testing.T) { user := *GetUser("invalid", Config{Company: true, Manager: true}) if err := DB.Model(&user).Association("Invalid").Find(&user.Company).Error; err == nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Feb 08 08:29:09 UTC 2023 - 10.9K bytes - Viewed (0)