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

Function testRemoveComments

util/util_test.go:55–63  ·  view source on GitHub ↗
(t *testing.T, s string, res string)

Source from the content-addressed store, hash-verified

53}
54
55func testRemoveComments(t *testing.T, s string, res string) {
56 t.Helper()
57 myRes := RemoveComments(s)
58 t.Logf("%s: %s", s, myRes)
59
60 if myRes != res {
61 t.Errorf("%s: %s, supposed to be %s", s, myRes, res)
62 }
63}
64
65func TestRemoveComments(t *testing.T) {
66 testRemoveComments(t, "r.act == p.act # comments", "r.act == p.act")

Callers 1

TestRemoveCommentsFunction · 0.85

Calls 1

RemoveCommentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…