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

Method BoolX

app/controlplane/pkg/data/ent/ent.go:521–527  ·  view source on GitHub ↗

BoolX is like Bool, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

519
520// BoolX is like Bool, but panics if an error occurs.
521func (s *selector) BoolX(ctx context.Context) bool {
522 v, err := s.Bool(ctx)
523 if err != nil {
524 panic(err)
525 }
526 return v
527}
528
529// withHooks invokes the builder operation with the given hooks, if any.
530func withHooks[V Value, M any, PM interface {

Callers

nothing calls this directly

Calls 1

BoolMethod · 0.95

Tested by

no test coverage detected