MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / CountX

Method CountX

app/controlplane/pkg/data/ent/user_query.go:263–269  ·  view source on GitHub ↗

CountX is like Count, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

261
262// CountX is like Count, but panics if an error occurs.
263func (_q *UserQuery) CountX(ctx context.Context) int {
264 count, err := _q.Count(ctx)
265 if err != nil {
266 panic(err)
267 }
268 return count
269}
270
271// Exist returns true if the query has elements in the graph.
272func (_q *UserQuery) Exist(ctx context.Context) (bool, error) {

Callers

nothing calls this directly

Calls 1

CountMethod · 0.95

Tested by

no test coverage detected