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

Method BoolsX

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

BoolsX is like Bools, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

493
494// BoolsX is like Bools, but panics if an error occurs.
495func (s *selector) BoolsX(ctx context.Context) []bool {
496 v, err := s.Bools(ctx)
497 if err != nil {
498 panic(err)
499 }
500 return v
501}
502
503// Bool returns a single bool from a selector. It is only allowed when selecting one field.
504func (s *selector) Bool(ctx context.Context) (_ bool, err error) {

Callers

nothing calls this directly

Calls 1

BoolsMethod · 0.95

Tested by

no test coverage detected