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

Function test_line_change_summary

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

Source from the content-addressed store, hash-verified

170
171 #[test]
172 fn test_line_change_summary() {
173 let line = SemanticLine::new(b"added\n", 1);
174 let tokens = create_insertion_tokens(&line);
175 let change = LineChange::Added {
176 line_num: 1,
177 line,
178 tokens,
179 };
180 let summary = change.summary();
181 assert!(summary.starts_with("+1:"));
182 }
183
184 // SemanticDiffStats tests
185

Callers

nothing calls this directly

Calls 2

create_insertion_tokensFunction · 0.85
summaryMethod · 0.45

Tested by

no test coverage detected