()
| 1450 | |
| 1451 | #[test] |
| 1452 | fn test_format_items_display_impl() -> Result<()> { |
| 1453 | let config = LintExecutionConfig::default(); |
| 1454 | let header = "Numbers"; |
| 1455 | let mut output_str = String::new(); |
| 1456 | |
| 1457 | let items_numbers = [1, 2, 3]; |
| 1458 | format_items(&config, header, items_numbers.iter(), &mut output_str)?; |
| 1459 | similar_asserts::assert_eq!(output_str, "Numbers:\n 1\n 2\n 3\n"); |
| 1460 | |
| 1461 | Ok(()) |
| 1462 | } |
| 1463 | } |
nothing calls this directly
no test coverage detected