MCPcopy
hub / github.com/go-gorm/gorm / TestGenericsCount

Function TestGenericsCount

tests/generics_test.go:1011–1019  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1009}
1010
1011func 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
1021func TestGenericsUpdate(t *testing.T) {
1022 ctx := context.Background()

Callers

nothing calls this directly

Calls 1

CountMethod · 0.65

Tested by

no test coverage detected