()
| 944 | |
| 945 | #[test] |
| 946 | fn shell_quote_with_single_quote() { |
| 947 | // The tricky case: end the single-quoted run, escape the quote, restart. |
| 948 | // Per POSIX: 'a'\''b' parses as the single string a'b |
| 949 | assert_eq!( |
| 950 | shell_quote("/opt/atomic user's/bin"), |
| 951 | "'/opt/atomic user'\\''s/bin'" |
| 952 | ); |
| 953 | } |
| 954 | |
| 955 | #[test] |
| 956 | fn upgrade_message_path_with_single_quote_renders_safely() { |
nothing calls this directly
no outgoing calls
no test coverage detected