(t *testing.T, e *Enforcer, res [][]string)
| 97 | } |
| 98 | |
| 99 | func testGetGroupingPolicy(t *testing.T, e *Enforcer, res [][]string) { |
| 100 | t.Helper() |
| 101 | myRes, err := e.GetGroupingPolicy() |
| 102 | if err != nil { |
| 103 | t.Error(err) |
| 104 | } |
| 105 | |
| 106 | t.Log("Grouping policy: ", myRes) |
| 107 | |
| 108 | if !util.Array2DEquals(res, myRes) { |
| 109 | t.Error("Grouping policy: ", myRes, ", supposed to be ", res) |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | func testGetFilteredGroupingPolicy(t *testing.T, e *Enforcer, fieldIndex int, res [][]string, fieldValues ...string) { |
| 114 | t.Helper() |
no test coverage detected
searching dependent graphs…