MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_diff_stats_display

Function test_diff_stats_display

atomic-core/src/diff/display.rs:962–972  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

960
961 #[test]
962 fn test_diff_stats_display() {
963 let stats = DiffStats {
964 files_changed: 3,
965 lines_added: 10,
966 lines_removed: 5,
967 };
968 let s = format!("{}", stats);
969 assert!(s.contains("3 file"));
970 assert!(s.contains("10 insertion"));
971 assert!(s.contains("5 deletion"));
972 }
973
974 #[test]
975 fn test_display_line_display_trait() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected