()
| 1868 | #[test] |
| 1869 | #[file_serial] |
| 1870 | fn test_status_run_short_format() { |
| 1871 | let _guard = DirGuard::new(); |
| 1872 | |
| 1873 | let temp_dir = tempfile::tempdir().unwrap(); |
| 1874 | let repo_path = temp_dir.path(); |
| 1875 | |
| 1876 | // Initialize a repository and drop handle to release lock |
| 1877 | { |
| 1878 | let repo_result = Repository::init(repo_path); |
| 1879 | assert!( |
| 1880 | repo_result.is_ok(), |
| 1881 | "Failed to init repository: {:?}", |
| 1882 | repo_result.err() |
| 1883 | ); |
| 1884 | } |
| 1885 | |
| 1886 | // Change to repo directory |
| 1887 | std::env::set_current_dir(repo_path).unwrap(); |
| 1888 | |
| 1889 | let status = Status::new().with_short(true); |
| 1890 | let result = status.run(); |
| 1891 | |
| 1892 | assert!( |
| 1893 | result.is_ok(), |
| 1894 | "Status short command failed: {:?}", |
| 1895 | result.err() |
| 1896 | ); |
| 1897 | } |
| 1898 | |
| 1899 | #[test] |
| 1900 | #[file_serial] |
nothing calls this directly
no test coverage detected