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

Method IntsX

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

IntsX is like Ints, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

399
400// IntsX is like Ints, but panics if an error occurs.
401func (s *selector) IntsX(ctx context.Context) []int {
402 v, err := s.Ints(ctx)
403 if err != nil {
404 panic(err)
405 }
406 return v
407}
408
409// Int returns a single int from a selector. It is only allowed when selecting one field.
410func (s *selector) Int(ctx context.Context) (_ int, err error) {

Callers

nothing calls this directly

Calls 1

IntsMethod · 0.95

Tested by

no test coverage detected