(t *testing.T)
| 131 | } |
| 132 | |
| 133 | func TestBasicModelWithoutResources(t *testing.T) { |
| 134 | e, _ := NewEnforcer("examples/basic_without_resources_model.conf", "examples/basic_without_resources_policy.csv") |
| 135 | |
| 136 | testEnforceWithoutUsers(t, e, "alice", "read", true) |
| 137 | testEnforceWithoutUsers(t, e, "alice", "write", false) |
| 138 | testEnforceWithoutUsers(t, e, "bob", "read", false) |
| 139 | testEnforceWithoutUsers(t, e, "bob", "write", true) |
| 140 | } |
| 141 | |
| 142 | func TestRBACModel(t *testing.T) { |
| 143 | e, _ := NewEnforcer("examples/rbac_model.conf", "examples/rbac_policy.csv") |
nothing calls this directly
no test coverage detected
searching dependent graphs…