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

Method StringsX

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

StringsX is like Strings, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

352
353// StringsX is like Strings, but panics if an error occurs.
354func (s *selector) StringsX(ctx context.Context) []string {
355 v, err := s.Strings(ctx)
356 if err != nil {
357 panic(err)
358 }
359 return v
360}
361
362// String returns a single string from a selector. It is only allowed when selecting one field.
363func (s *selector) String(ctx context.Context) (_ string, err error) {

Callers

nothing calls this directly

Calls 1

StringsMethod · 0.95

Tested by

no test coverage detected