()
| 1258 | |
| 1259 | #[tokio::test] |
| 1260 | async fn test_commit_changes_no_changes() { |
| 1261 | // Create a git repository with an initial commit |
| 1262 | let test_repo = TestGitRepository::new().unwrap(); |
| 1263 | test_repo.init_with_commit().unwrap(); |
| 1264 | |
| 1265 | let ctx = AppContext::builder().build(); |
| 1266 | let manager = RepoManager::new(&ctx); |
| 1267 | |
| 1268 | // Test committing when there are no changes |
| 1269 | let result = manager |
| 1270 | .commit_changes(test_repo.path(), "Test commit") |
| 1271 | .await; |
| 1272 | |
| 1273 | assert!(result.is_ok(), "Error: {result:?}"); |
| 1274 | } |
| 1275 | |
| 1276 | #[tokio::test] |
| 1277 | async fn test_commit_changes_with_changes() { |
nothing calls this directly
no test coverage detected