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

Source from the content-addressed store, hash-verified

1822 #[test]
1823 #[file_serial]
1824 fn test_status_run_outside_repository() {
1825 let _guard = DirGuard::new();
1826
1827 // Running status outside a repository should fail with appropriate error
1828 let temp_dir = tempfile::tempdir().unwrap();
1829 std::env::set_current_dir(&temp_dir).unwrap();
1830
1831 let status = Status::new();
1832 let result = status.run();
1833
1834 // Should fail because we're not in a repository
1835 assert!(result.is_err());
1836 }
1837
1838 #[test]
1839 #[file_serial]

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected