MCPcopy Create free account
hub / github.com/bootc-dev/bootc / test_format_items_display_impl

Function test_format_items_display_impl

crates/lib/src/lints.rs:1452–1462  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

format_itemsFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected