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

Source from the content-addressed store, hash-verified

1222 #[test]
1223 #[serial]
1224 fn test_diff_run_no_changes() {
1225 let _guard = DirGuard::new();
1226
1227 let temp_dir = tempfile::tempdir().unwrap();
1228 let repo_path = temp_dir.path();
1229
1230 // Initialize repository
1231 {
1232 let _repo = Repository::init(repo_path).unwrap();
1233 }
1234
1235 std::env::set_current_dir(repo_path).unwrap();
1236
1237 let diff = Diff::new();
1238 let result = diff.run();
1239
1240 // Should succeed but show no changes
1241 assert!(result.is_ok());
1242 }
1243
1244 #[test]
1245 #[serial]

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected