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

Function test_change_hunk_constructors

atomic-core/src/diff/inline.rs:901–913  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

899
900 #[test]
901 fn test_change_hunk_constructors() {
902 let deleted = ChangeHunk::deleted(0, 5);
903 assert_eq!(deleted.kind, HunkKind::Deleted);
904
905 let inserted = ChangeHunk::inserted(5, 10);
906 assert_eq!(inserted.kind, HunkKind::Inserted);
907
908 let modified = ChangeHunk::modified(10, 15);
909 assert_eq!(modified.kind, HunkKind::Modified);
910
911 let unchanged = ChangeHunk::unchanged(15, 20);
912 assert_eq!(unchanged.kind, HunkKind::Unchanged);
913 }
914
915 #[test]
916 fn test_change_hunk_range() {

Callers

nothing calls this directly

Calls 2

deletedFunction · 0.85
modifiedFunction · 0.85

Tested by

no test coverage detected