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

Function test_hunk_line_context

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

Source from the content-addressed store, hash-verified

363
364 #[test]
365 fn test_hunk_line_context() {
366 let line = HunkLine::context("unchanged line", 5, 5);
367 assert_eq!(line.status, LineStatus::Unchanged);
368 assert_eq!(line.content, "unchanged line");
369 assert_eq!(line.old_line_num, Some(5));
370 assert_eq!(line.new_line_num, Some(5));
371 }
372
373 #[test]
374 fn test_hunk_line_added() {

Callers

nothing calls this directly

Calls 1

contextFunction · 0.85

Tested by

no test coverage detected