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

Method oplCheckSyntax

internal/e2e/grpc_client_test.go:273–285  ·  view source on GitHub ↗
(t testing.TB, content []byte)

Source from the content-addressed store, hash-verified

271}
272
273func (g *grpcClient) oplCheckSyntax(t testing.TB, content []byte) (parseErrors []*ketoapi.ParseError) {
274 c := opl.NewSyntaxServiceClient(g.oplSyntax)
275
276 res, err := c.Check(g.ctx, &opl.CheckRequest{Content: content})
277 require.NoError(t, err)
278
279 raw, err := json.Marshal(res.ParseErrors)
280 require.NoError(t, err)
281 err = json.Unmarshal(raw, &parseErrors)
282 require.NoError(t, err)
283
284 return
285}

Callers

nothing calls this directly

Calls 1

CheckMethod · 0.95

Tested by

no test coverage detected