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

Function test_hunk_line_added

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

Source from the content-addressed store, hash-verified

372
373 #[test]
374 fn test_hunk_line_added() {
375 let line = HunkLine::added("new line", 10);
376 assert_eq!(line.status, LineStatus::Added);
377 assert_eq!(line.content, "new line");
378 assert_eq!(line.old_line_num, None);
379 assert_eq!(line.new_line_num, Some(10));
380 }
381
382 #[test]
383 fn test_hunk_line_removed() {

Callers

nothing calls this directly

Calls 1

addedFunction · 0.85

Tested by

no test coverage detected