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

Function test_status_run_outside_repository

atomic-cli/src/commands/status.rs:1010–1022  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1008 #[test]
1009 #[serial]
1010 fn test_status_run_outside_repository() {
1011 let _guard = DirGuard::new();
1012
1013 // Running status outside a repository should fail with appropriate error
1014 let temp_dir = tempfile::tempdir().unwrap();
1015 std::env::set_current_dir(&temp_dir).unwrap();
1016
1017 let status = Status::new();
1018 let result = status.run();
1019
1020 // Should fail because we're not in a repository
1021 assert!(result.is_err());
1022 }
1023
1024 #[test]
1025 #[serial]

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected