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

Function test_diff_get_format_priority

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

Source from the content-addressed store, hash-verified

744
745 #[test]
746 fn test_diff_get_format_priority() {
747 // name_only takes priority over stat
748 let diff = Diff::new().with_stat(true).with_name_only(true);
749 assert_eq!(diff.get_format(), DiffFormat::NameOnly);
750
751 // name_status takes priority over stat but not name_only
752 let diff2 = Diff::new().with_stat(true).with_name_status(true);
753 assert_eq!(diff2.get_format(), DiffFormat::NameStatus);
754 }
755
756 #[test]
757 fn test_diff_parse_algorithm_myers() {

Callers

nothing calls this directly

Calls 3

with_name_onlyMethod · 0.80
with_statMethod · 0.80
with_name_statusMethod · 0.80

Tested by

no test coverage detected