MCPcopy Index your code
hub / github.com/apache/casbin / TestSavePolicy

Function TestSavePolicy

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

Source from the content-addressed store, hash-verified

241}
242
243func TestSavePolicy(t *testing.T) {
244 e, _ := NewEnforcer("examples/rbac_model.conf", "examples/rbac_policy.csv")
245
246 _ = e.SavePolicy()
247}
248
249func TestClearPolicy(t *testing.T) {
250 e, _ := NewEnforcer("examples/rbac_model.conf", "examples/rbac_policy.csv")

Callers

nothing calls this directly

Calls 2

SavePolicyMethod · 0.95
NewEnforcerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…