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:706–719  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

704
705 #[test]
706 fn test_diff_builder_chain() {
707 let diff = Diff::new()
708 .with_files(vec!["test.rs"])
709 .with_algorithm("patience")
710 .with_context(10)
711 .with_stat(true)
712 .with_no_color(true);
713
714 assert_eq!(diff.files, vec!["test.rs"]);
715 assert_eq!(diff.algorithm, "patience");
716 assert_eq!(diff.context, 10);
717 assert!(diff.stat);
718 assert!(diff.no_color);
719 }
720
721 #[test]
722 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