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

Function TestRemoveComments

util/util_test.go:65–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestRemoveComments(t *testing.T) {
66 testRemoveComments(t, "r.act == p.act # comments", "r.act == p.act")
67 testRemoveComments(t, "r.act == p.act#comments", "r.act == p.act")
68 testRemoveComments(t, "r.act == p.act###", "r.act == p.act")
69 testRemoveComments(t, "### comments", "")
70 testRemoveComments(t, "r.act == p.act", "r.act == p.act")
71}
72
73func testArrayEquals(t *testing.T, a []string, b []string, res bool) {
74 t.Helper()

Callers

nothing calls this directly

Calls 1

testRemoveCommentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…