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

Function test_hunk_line_removed

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

Source from the content-addressed store, hash-verified

381
382 #[test]
383 fn test_hunk_line_removed() {
384 let line = HunkLine::removed("old line", 7);
385 assert_eq!(line.status, LineStatus::Removed);
386 assert_eq!(line.content, "old line");
387 assert_eq!(line.old_line_num, Some(7));
388 assert_eq!(line.new_line_num, None);
389 }
390
391 #[test]
392 fn test_hunk_line_is_change() {

Callers

nothing calls this directly

Calls 1

removedFunction · 0.85

Tested by

no test coverage detected