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

Function test_diff_builder_chain

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

Source from the content-addressed store, hash-verified

942
943 #[test]
944 fn test_diff_builder_chain() {
945 let diff = Diff::new()
946 .with_files(vec!["test.rs"])
947 .with_algorithm("patience")
948 .with_context(10)
949 .with_stat(true)
950 .with_no_color(true);
951
952 assert_eq!(diff.files, vec!["test.rs"]);
953 assert_eq!(diff.algorithm, "patience");
954 assert_eq!(diff.context, 10);
955 assert!(diff.stat);
956 assert!(diff.no_color);
957 }
958
959 #[test]
960 fn test_diff_get_format_unified() {

Callers

nothing calls this directly

Calls 5

with_no_colorMethod · 0.80
with_statMethod · 0.80
with_contextMethod · 0.45
with_algorithmMethod · 0.45
with_filesMethod · 0.45

Tested by

no test coverage detected