()
| 408 | |
| 409 | #[test] |
| 410 | fn test_print_output_direct_json() { |
| 411 | let json_fn = || Ok(r#"{"test": true}"#.to_string()); |
| 412 | let yaml_fn = || Ok("test: true".to_string()); |
| 413 | |
| 414 | let result = print_output_direct("json", json_fn, yaml_fn); |
| 415 | assert!(result.is_ok()); |
| 416 | assert!(result.unwrap()); |
| 417 | } |
| 418 | |
| 419 | #[test] |
| 420 | fn test_print_output_direct_yaml() { |
nothing calls this directly
no test coverage detected