(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestBasicModelWithoutUsers(t *testing.T) { |
| 125 | e, _ := NewEnforcer("examples/basic_without_users_model.conf", "examples/basic_without_users_policy.csv") |
| 126 | |
| 127 | testEnforceWithoutUsers(t, e, "data1", "read", true) |
| 128 | testEnforceWithoutUsers(t, e, "data1", "write", false) |
| 129 | testEnforceWithoutUsers(t, e, "data2", "read", false) |
| 130 | testEnforceWithoutUsers(t, e, "data2", "write", true) |
| 131 | } |
| 132 | |
| 133 | func TestBasicModelWithoutResources(t *testing.T) { |
| 134 | e, _ := NewEnforcer("examples/basic_without_resources_model.conf", "examples/basic_without_resources_policy.csv") |
nothing calls this directly
no test coverage detected
searching dependent graphs…