()
| 315 | |
| 316 | #[test] |
| 317 | fn test_print_output_collection_json() { |
| 318 | let items = vec![ |
| 319 | TestItem { |
| 320 | id: 1, |
| 321 | name: "first".to_string(), |
| 322 | }, |
| 323 | TestItem { |
| 324 | id: 2, |
| 325 | name: "second".to_string(), |
| 326 | }, |
| 327 | ]; |
| 328 | |
| 329 | // Note: This test doesn't capture stdout, but verifies the function returns Ok(true) |
| 330 | let result = print_output_collection("json", &items, test_item_to_json); |
| 331 | assert!(result.is_ok()); |
| 332 | assert!(result.unwrap()); |
| 333 | } |
| 334 | |
| 335 | #[test] |
| 336 | fn test_print_output_collection_yaml() { |
nothing calls this directly
no test coverage detected