MCPcopy
hub / github.com/ory/keto / queryTupleErr

Method queryTupleErr

internal/e2e/cli_client_test.go:90–95  ·  view source on GitHub ↗
(t testing.TB, expected herodot.DefaultError, q *ketoapi.RelationQuery, opts ...paginationOptionSetter)

Source from the content-addressed store, hash-verified

88}
89
90func (g *cliClient) queryTupleErr(t testing.TB, expected herodot.DefaultError, q *ketoapi.RelationQuery, opts ...paginationOptionSetter) {
91 _, stdErr, err := g.c.Exec(nil, append(g.assembleQueryFlags(q, opts), "relation-tuple", "get")...)
92 assert.Error(t, err)
93 assert.Contains(t, stdErr, expected.GRPCCodeField.String())
94 assert.Contains(t, stdErr, expected.Error())
95}
96
97func (g *cliClient) check(t testing.TB, r *ketoapi.RelationTuple) bool {
98 var sub string

Callers

nothing calls this directly

Calls 4

assembleQueryFlagsMethod · 0.95
ExecMethod · 0.65
StringMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected