(t *testing.T)
| 1029 | } |
| 1030 | |
| 1031 | func TestGenericsUpdates(t *testing.T) { |
| 1032 | ctx := context.Background() |
| 1033 | |
| 1034 | // Just test that the API can be called |
| 1035 | _, err := gorm.G[User](DB).Where("id = ?", 1).Updates(ctx, User{Name: "test"}) |
| 1036 | if err != nil { |
| 1037 | t.Fatalf("Updates failed: %v", err) |
| 1038 | } |
| 1039 | } |
| 1040 | |
| 1041 | func TestGenericsDeleteAPI(t *testing.T) { |
| 1042 | ctx := context.Background() |