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

Function assertNamespacesContains

internal/e2e/testcases_test.go:393–401  ·  view source on GitHub ↗
(t *testing.T, list []ketoapi.Namespace, name string)

Source from the content-addressed store, hash-verified

391}
392
393func assertNamespacesContains(t *testing.T, list []ketoapi.Namespace, name string) {
394 t.Helper()
395 for _, n := range list {
396 if n.Name == name {
397 return
398 }
399 }
400 t.Errorf("Could not find %q in %+v", name, list)
401}

Callers 1

runCasesFunction · 0.85

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected