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

Method Bools

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

Bools returns list of bools from a selector. It is only allowed when selecting one field.

(ctx context.Context)

Source from the content-addressed store, hash-verified

481
482// Bools returns list of bools from a selector. It is only allowed when selecting one field.
483func (s *selector) Bools(ctx context.Context) ([]bool, error) {
484 if len(*s.flds) > 1 {
485 return nil, errors.New("ent: Bools is not achievable when selecting more than 1 field")
486 }
487 var v []bool
488 if err := s.scan(ctx, &v); err != nil {
489 return nil, err
490 }
491 return v, nil
492}
493
494// BoolsX is like Bools, but panics if an error occurs.
495func (s *selector) BoolsX(ctx context.Context) []bool {

Callers 2

BoolsXMethod · 0.95
BoolMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected