(t *testing.T, e *Enforcer, obj string, act string, res bool)
| 33 | } |
| 34 | |
| 35 | func 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 | |
| 42 | func testDomainEnforce(t *testing.T, e *Enforcer, sub string, dom string, obj string, act string, res bool) { |
| 43 | t.Helper() |
no test coverage detected
searching dependent graphs…