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

Function TestModelToTest

model/model_test.go:128–131  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

126}
127
128func TestModelToTest(t *testing.T) {
129 testModelToText(t, "r.sub == p.sub && r.obj == p.obj && r_func(r.act, p.act) && testr_func(r.act, p.act)", "r_sub == p_sub && r_obj == p_obj && r_func(r_act, p_act) && testr_func(r_act, p_act)")
130 testModelToText(t, "r.sub == p.sub && r.obj == p.obj && p_func(r.act, p.act) && testp_func(r.act, p.act)", "r_sub == p_sub && r_obj == p_obj && p_func(r_act, p_act) && testp_func(r_act, p_act)")
131}
132
133func testModelToText(t *testing.T, mData, mExpected string) {
134 m := NewModel()

Callers

nothing calls this directly

Calls 1

testModelToTextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…