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

Function test_file_diff_add_hunk

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

Source from the content-addressed store, hash-verified

461
462 #[test]
463 fn test_file_diff_add_hunk() {
464 let mut diff = FileDiff::modified("test.rs");
465 diff.add_hunk(DiffHunk::new(1, 1, 1, 2));
466 assert_eq!(diff.hunks.len(), 1);
467 }
468
469 #[test]
470 fn test_file_diff_compute_stats() {

Callers

nothing calls this directly

Calls 2

modifiedFunction · 0.85
add_hunkMethod · 0.45

Tested by

no test coverage detected