(t *testing.T, e *Enforcer, name string, domain string, res [][]string)
| 337 | } |
| 338 | |
| 339 | func testGetImplicitPermissionsWithDomain(t *testing.T, e *Enforcer, name string, domain string, res [][]string) { |
| 340 | t.Helper() |
| 341 | myRes, _ := e.GetImplicitPermissionsForUser(name, domain) |
| 342 | t.Log("Implicit permissions for", name, "under", domain, ":", myRes) |
| 343 | |
| 344 | if !util.Set2DEquals(res, myRes) { |
| 345 | t.Error("Implicit permissions for", name, "under", domain, ":", myRes, ", supposed to be ", res) |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | func testGetNamedImplicitPermissions(t *testing.T, e *Enforcer, ptype string, gtype string, name string, res [][]string) { |
| 350 | t.Helper() |
no test coverage detected
searching dependent graphs…