(t *testing.T)
| 175 | } |
| 176 | |
| 177 | func TestUnsupportedFilteredPolicy(t *testing.T) { |
| 178 | e, _ := NewEnforcer("examples/rbac_with_domains_model.conf", "examples/rbac_with_domains_policy.csv") |
| 179 | |
| 180 | err := e.LoadFilteredPolicy(&fileadapter.Filter{ |
| 181 | P: []string{"", "domain1"}, |
| 182 | G: []string{"", "", "domain1"}, |
| 183 | }) |
| 184 | if err == nil { |
| 185 | t.Errorf("encorcer should have reported incompatibility error") |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | func TestFilteredAdapterEmptyFilepath(t *testing.T) { |
| 190 | e, _ := NewEnforcer() |
nothing calls this directly
no test coverage detected
searching dependent graphs…