(#[case] args: &[&str], #[case] expected: &str)
| 318 | #[case::dollar(&["echo", "$HOME"], "echo '$HOME'")] |
| 319 | #[case::quote(&["echo", "it's"], "echo 'it'\\''s'")] |
| 320 | fn test_shell_command_from_args(#[case] args: &[&str], #[case] expected: &str) { |
| 321 | let args: Vec<String> = args.iter().map(|s| s.to_string()).collect(); |
| 322 | assert_eq!(shell_command_from_args(&args), expected); |
| 323 | } |
| 324 | } |
nothing calls this directly
no outgoing calls
no test coverage detected