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

Function test_diff_new

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

Source from the content-addressed store, hash-verified

587
588 #[test]
589 fn test_diff_new() {
590 let diff = Diff::new();
591 assert!(diff.files.is_empty());
592 assert!(diff.change.is_none());
593 assert_eq!(diff.algorithm, "myers");
594 assert_eq!(diff.context, 3);
595 assert!(!diff.stat);
596 assert!(!diff.no_color);
597 assert!(!diff.name_only);
598 assert!(!diff.name_status);
599 assert!(!diff.cached);
600 assert!(diff.view.is_none());
601 }
602
603 #[test]
604 fn test_diff_default() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected