(t *testing.T, e *Enforcer, name string, res []string)
| 480 | } |
| 481 | |
| 482 | func testGetImplicitUsersForRole(t *testing.T, e *Enforcer, name string, res []string) { |
| 483 | t.Helper() |
| 484 | myRes, _ := e.GetImplicitUsersForRole(name) |
| 485 | t.Log("Implicit users for ", name, ": ", myRes) |
| 486 | sort.Strings(res) |
| 487 | sort.Strings(myRes) |
| 488 | |
| 489 | if !util.SetEquals(res, myRes) { |
| 490 | t.Error("Implicit users for ", name, ": ", myRes, ", supposed to be ", res) |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | func TestExplicitPriorityModify(t *testing.T) { |
| 495 | e, _ := NewEnforcer("examples/priority_model_explicit.conf", "examples/priority_policy_explicit.csv") |
no test coverage detected
searching dependent graphs…