(t *testing.T, input string, expected string)
| 228 | } |
| 229 | |
| 230 | func 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 | |
| 242 | func TestEscapeStringLiterals(t *testing.T) { |
| 243 | // Test single-quoted strings |
no test coverage detected
searching dependent graphs…