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

Function test_diff_run_no_changes

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

Source from the content-addressed store, hash-verified

984 #[test]
985 #[serial]
986 fn test_diff_run_no_changes() {
987 let _guard = DirGuard::new();
988
989 let temp_dir = tempfile::tempdir().unwrap();
990 let repo_path = temp_dir.path();
991
992 // Initialize repository
993 {
994 let _repo = Repository::init(repo_path).unwrap();
995 }
996
997 std::env::set_current_dir(repo_path).unwrap();
998
999 let diff = Diff::new();
1000 let result = diff.run();
1001
1002 // Should succeed but show no changes
1003 assert!(result.is_ok());
1004 }
1005
1006 #[test]
1007 #[serial]

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected