()
| 33 | |
| 34 | #[test] |
| 35 | fn passes_through_json() { |
| 36 | // The metadata path renders sonic_rs JSON and then quotes it as |
| 37 | // a SQL string. JSON already escapes its own `"` and `\`, so |
| 38 | // only the outer `'` needs SQL escaping. |
| 39 | let json = r#"{"name":"O'Reilly","ok":true}"#; |
| 40 | let quoted = quote_string_literal(json); |
| 41 | assert_eq!(quoted, "'{\"name\":\"O''Reilly\",\"ok\":true}'"); |
| 42 | } |
| 43 | } |
nothing calls this directly
no test coverage detected