- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for AssertAssociationCount (0.1 seconds)
-
tests/associations_has_one_test.go
} user.Account = account2 CheckUser(t, user2, user) AssertAssociationCount(t, user2, "Account", 1, "AfterReplace") // Delete if err := DB.Model(&user2).Association("Account").Delete(&Account{}); err != nil { t.Fatalf("Error happened when delete account, got %v", err) } AssertAssociationCount(t, user2, "Account", 1, "after delete non-existing data")
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed Jun 12 10:49:45 GMT 2024 - 7.1K bytes - Click Count (0) -
tests/associations_belongs_to_test.go
user.ManagerID = &manager2.ID CheckUser(t, user2, user) AssertAssociationCount(t, user2, "Company", 1, "AfterReplace") AssertAssociationCount(t, user2, "Manager", 1, "AfterReplace") // Delete if err := DB.Model(&user2).Association("Company").Delete(&Company{}); err != nil { t.Fatalf("Error happened when delete Company, got %v", err) } AssertAssociationCount(t, user2, "Company", 1, "after delete non-existing data")
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 9.3K bytes - Click Count (0)