MCPcopy
hub / github.com/dgraph-io/dgraph / getAuthMeta

Function getAuthMeta

graphql/bench/auth_test.go:36–46  ·  view source on GitHub ↗
(schema string)

Source from the content-addressed store, hash-verified

34}
35
36func getAuthMeta(schema string) *testutil.AuthMeta {
37 authMeta, err := authorization.Parse(schema)
38 x.Panic(err)
39
40 return &testutil.AuthMeta{
41 PublicKey: authMeta.VerificationKey,
42 Namespace: authMeta.Namespace,
43 Algo: authMeta.Algo,
44 Header: authMeta.Header,
45 }
46}
47
48func clearAll(b require.TestingT, metaInfo *testutil.AuthMeta) {
49 getParams := &common.GraphQLParams{

Callers 5

BenchmarkNestedQueryFunction · 0.85
BenchmarkOneLevelQueryFunction · 0.85
BenchmarkMutationFunction · 0.85

Calls 2

ParseFunction · 0.92
PanicFunction · 0.92

Tested by

no test coverage detected