()
| 329 | |
| 330 | #[test] |
| 331 | fn command_run_ext_json() { |
| 332 | #[derive(serde::Deserialize)] |
| 333 | struct Foo { |
| 334 | a: String, |
| 335 | b: u32, |
| 336 | } |
| 337 | let v: Foo = Command::new("echo") |
| 338 | .arg(r##"{"a": "somevalue", "b": 42}"##) |
| 339 | .run_and_parse_json() |
| 340 | .unwrap(); |
| 341 | assert_eq!(v.a, "somevalue"); |
| 342 | assert_eq!(v.b, 42); |
| 343 | } |
| 344 | |
| 345 | #[tokio::test] |
| 346 | async fn async_command_run_ext() { |
nothing calls this directly
no test coverage detected