(t testing.TB, q *ketoapi.RelationQuery, opts ...paginationOptionSetter)
| 79 | } |
| 80 | |
| 81 | func (g *cliClient) queryTuple(t testing.TB, q *ketoapi.RelationQuery, opts ...paginationOptionSetter) *ketoapi.GetResponse { |
| 82 | out := g.c.ExecNoErr(t, append(g.assembleQueryFlags(q, opts), "relation-tuple", "get")...) |
| 83 | |
| 84 | var resp ketoapi.GetResponse |
| 85 | require.NoError(t, json.Unmarshal([]byte(out), &resp), "%s", out) |
| 86 | |
| 87 | return &resp |
| 88 | } |
| 89 | |
| 90 | func (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")...) |
nothing calls this directly
no test coverage detected