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

Function test_hunk_line_is_context

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

Source from the content-addressed store, hash-verified

397
398 #[test]
399 fn test_hunk_line_is_context() {
400 assert!(HunkLine::context("x", 1, 1).is_context());
401 assert!(!HunkLine::added("x", 1).is_context());
402 assert!(!HunkLine::removed("x", 1).is_context());
403 }
404
405 #[test]
406 fn test_hunk_line_prefix() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected