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

Function test_diff_hunk_new

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

Source from the content-addressed store, hash-verified

319
320 #[test]
321 fn test_diff_hunk_new() {
322 let graph_op = DiffHunk::new(1, 5, 1, 6);
323 assert_eq!(graph_op.old_start, 1);
324 assert_eq!(graph_op.old_count, 5);
325 assert_eq!(graph_op.new_start, 1);
326 assert_eq!(graph_op.new_count, 6);
327 assert!(graph_op.lines.is_empty());
328 }
329
330 #[test]
331 fn test_diff_hunk_add_line() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected