()
| 1054 | #[test] |
| 1055 | #[serial] |
| 1056 | fn test_status_run_short_format() { |
| 1057 | let _guard = DirGuard::new(); |
| 1058 | |
| 1059 | let temp_dir = tempfile::tempdir().unwrap(); |
| 1060 | let repo_path = temp_dir.path(); |
| 1061 | |
| 1062 | // Initialize a repository and drop handle to release lock |
| 1063 | { |
| 1064 | let repo_result = Repository::init(repo_path); |
| 1065 | assert!( |
| 1066 | repo_result.is_ok(), |
| 1067 | "Failed to init repository: {:?}", |
| 1068 | repo_result.err() |
| 1069 | ); |
| 1070 | } |
| 1071 | |
| 1072 | // Change to repo directory |
| 1073 | std::env::set_current_dir(repo_path).unwrap(); |
| 1074 | |
| 1075 | let status = Status::new().with_short(true); |
| 1076 | let result = status.run(); |
| 1077 | |
| 1078 | assert!( |
| 1079 | result.is_ok(), |
| 1080 | "Status short command failed: {:?}", |
| 1081 | result.err() |
| 1082 | ); |
| 1083 | } |
| 1084 | |
| 1085 | #[test] |
| 1086 | #[serial] |
nothing calls this directly
no test coverage detected