MCPcopy
hub / github.com/apache/casbin / testEnforceWithoutUsers

Function testEnforceWithoutUsers

model_test.go:35–40  ·  view source on GitHub ↗
(t *testing.T, e *Enforcer, obj string, act string, res bool)

Source from the content-addressed store, hash-verified

33}
34
35func testEnforceWithoutUsers(t *testing.T, e *Enforcer, obj string, act string, res bool) {
36 t.Helper()
37 if myRes, _ := e.Enforce(obj, act); myRes != res {
38 t.Errorf("%s, %s: %t, supposed to be %t", obj, act, myRes, res)
39 }
40}
41
42func testDomainEnforce(t *testing.T, e *Enforcer, sub string, dom string, obj string, act string, res bool) {
43 t.Helper()

Callers 3

TestPermissionAPIFunction · 0.85

Calls 1

EnforceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…