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

Function WithNamespaces

internal/driver/registry_factory.go:140–144  ·  view source on GitHub ↗
(namespaces []*namespace.Namespace)

Source from the content-addressed store, hash-verified

138 }
139}
140func WithNamespaces(namespaces []*namespace.Namespace) TestRegistryOption {
141 return func(t testing.TB, r *RegistryDefault) {
142 require.NoError(t, r.c.Set(config.KeyNamespaces, namespaces))
143 }
144}
145func WithOPL(opl string) TestRegistryOption {
146 return func(t testing.TB, r *RegistryDefault) {
147 f := createFile(t, opl)

Callers 5

TestRESTHandlerFunction · 0.92
TestMigrationsFunction · 0.92
BenchmarkReadOnlyMapperFunction · 0.92
TestCheckRESTHandlerFunction · 0.92

Calls 1

SetMethod · 0.45

Tested by 5

TestRESTHandlerFunction · 0.74
TestMigrationsFunction · 0.74
BenchmarkReadOnlyMapperFunction · 0.74
TestCheckRESTHandlerFunction · 0.74