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

Function testEscapeStringLiterals

util/util_test.go:230–240  ·  view source on GitHub ↗
(t *testing.T, input string, expected string)

Source from the content-addressed store, hash-verified

228}
229
230func testEscapeStringLiterals(t *testing.T, input string, expected string) {
231 t.Helper()
232 result := EscapeStringLiterals(input)
233 t.Logf("Input: %q", input)
234 t.Logf("Expected: %q", expected)
235 t.Logf("Got: %q", result)
236
237 if result != expected {
238 t.Errorf("EscapeStringLiterals(%q) = %q, expected %q", input, result, expected)
239 }
240}
241
242func TestEscapeStringLiterals(t *testing.T) {
243 // Test single-quoted strings

Callers 1

TestEscapeStringLiteralsFunction · 0.85

Calls 1

EscapeStringLiteralsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…