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

Function test_hunk_line_prefix

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

Source from the content-addressed store, hash-verified

404
405 #[test]
406 fn test_hunk_line_prefix() {
407 assert_eq!(HunkLine::context("x", 1, 1).prefix(), ' ');
408 assert_eq!(HunkLine::added("x", 1).prefix(), '+');
409 assert_eq!(HunkLine::removed("x", 1).prefix(), '-');
410 }
411
412 #[test]
413 fn test_hunk_line_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected