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

Function test_diff_hunk_add_line

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

Source from the content-addressed store, hash-verified

329
330 #[test]
331 fn test_diff_hunk_add_line() {
332 let mut graph_op = DiffHunk::new(1, 1, 1, 2);
333 graph_op.add_line(HunkLine::context("unchanged", 1, 1));
334 graph_op.add_line(HunkLine::added("new line", 2));
335
336 assert_eq!(graph_op.lines.len(), 2);
337 }
338
339 #[test]
340 fn test_diff_hunk_header() {

Callers

nothing calls this directly

Calls 2

addedFunction · 0.85
add_lineMethod · 0.45

Tested by

no test coverage detected