(t *testing.T, e *Enforcer, name string, res [][]string, domain ...string)
| 327 | } |
| 328 | |
| 329 | func testGetImplicitPermissions(t *testing.T, e *Enforcer, name string, res [][]string, domain ...string) { |
| 330 | t.Helper() |
| 331 | myRes, _ := e.GetImplicitPermissionsForUser(name, domain...) |
| 332 | t.Log("Implicit permissions for ", name, ": ", myRes) |
| 333 | |
| 334 | if !util.Set2DEquals(res, myRes) { |
| 335 | t.Error("Implicit permissions for ", name, ": ", myRes, ", supposed to be ", res) |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | func testGetImplicitPermissionsWithDomain(t *testing.T, e *Enforcer, name string, domain string, res [][]string) { |
| 340 | t.Helper() |
no test coverage detected
searching dependent graphs…