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

Function test_line_change_deleted

atomic-core/src/diff/semantic/tests.rs:140–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139 #[test]
140 fn test_line_change_deleted() {
141 let line = SemanticLine::new(b"old line\n", 3);
142 let tokens = create_deletion_tokens(&line);
143 let change = LineChange::Deleted {
144 line_num: 3,
145 line,
146 tokens,
147 };
148 assert!(change.is_deleted());
149 assert_eq!(change.old_line_num(), Some(3));
150 assert!(change.new_line_num().is_none());
151 }
152
153 #[test]
154 fn test_line_change_modified() {

Callers

nothing calls this directly

Calls 1

create_deletion_tokensFunction · 0.85

Tested by

no test coverage detected