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

Source from the content-addressed store, hash-verified

961
962 #[test]
963 fn test_diff_builder_chain() {
964 let diff = Diff::new()
965 .with_files(vec!["test.rs"])
966 .with_algorithm("patience")
967 .with_context(10)
968 .with_stat(true)
969 .with_no_color(true);
970
971 assert_eq!(diff.files, vec!["test.rs"]);
972 assert_eq!(diff.algorithm, "patience");
973 assert_eq!(diff.context, 10);
974 assert!(diff.stat);
975 assert!(diff.no_color);
976 }
977
978 #[test]
979 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