(t *testing.T)
| 1009 | } |
| 1010 | |
| 1011 | func TestGenericsCount(t *testing.T) { |
| 1012 | ctx := context.Background() |
| 1013 | |
| 1014 | // Just test that the API can be called |
| 1015 | _, err := gorm.G[User](DB).Count(ctx, "*") |
| 1016 | if err != nil { |
| 1017 | t.Fatalf("Count failed: %v", err) |
| 1018 | } |
| 1019 | } |
| 1020 | |
| 1021 | func TestGenericsUpdate(t *testing.T) { |
| 1022 | ctx := context.Background() |