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

Function test_change_hunk_new

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

Source from the content-addressed store, hash-verified

890
891 #[test]
892 fn test_change_hunk_new() {
893 let hunk = ChangeHunk::new(10, 20, HunkKind::Inserted);
894 assert_eq!(hunk.start, 10);
895 assert_eq!(hunk.end, 20);
896 assert_eq!(hunk.kind, HunkKind::Inserted);
897 assert_eq!(hunk.len(), 10);
898 }
899
900 #[test]
901 fn test_change_hunk_constructors() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected