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

Function test_hunk_line_display

atomic-cli/src/commands/diff/tests.rs:413–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411
412 #[test]
413 fn test_hunk_line_display() {
414 let context = HunkLine::context("same", 1, 1);
415 let added = HunkLine::added("new", 1);
416 let removed = HunkLine::removed("old", 1);
417
418 assert_eq!(format!("{}", context), " same");
419 assert_eq!(format!("{}", added), "+new");
420 assert_eq!(format!("{}", removed), "-old");
421 }
422
423 // FileDiff Tests
424

Callers

nothing calls this directly

Calls 1

addedFunction · 0.85

Tested by

no test coverage detected