MCPcopy
hub / github.com/apache/casbin / TestClearPolicy

Function TestClearPolicy

enforcer_test.go:249–253  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

247}
248
249func TestClearPolicy(t *testing.T) {
250 e, _ := NewEnforcer("examples/rbac_model.conf", "examples/rbac_policy.csv")
251
252 e.ClearPolicy()
253}
254
255func TestEnableEnforce(t *testing.T) {
256 e, _ := NewEnforcer("examples/basic_model.conf", "examples/basic_policy.csv")

Callers

nothing calls this directly

Calls 2

ClearPolicyMethod · 0.95
NewEnforcerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…