()
| 673 | |
| 674 | #[tokio::test] |
| 675 | async fn test_git_operations_remotes() { |
| 676 | let test_repo = TestGitRepository::new().unwrap(); |
| 677 | test_repo.init().unwrap(); |
| 678 | let repo_path = test_repo.path(); |
| 679 | |
| 680 | // Test add_remote |
| 681 | add_remote(repo_path, "origin", "https://github.com/test/repo.git") |
| 682 | .await |
| 683 | .unwrap(); |
| 684 | |
| 685 | // Test adding the same remote again (should not error) |
| 686 | add_remote(repo_path, "origin", "https://github.com/test/repo.git") |
| 687 | .await |
| 688 | .unwrap(); |
| 689 | |
| 690 | // Test remove_remote |
| 691 | remove_remote(repo_path, "origin").await.unwrap(); |
| 692 | } |
| 693 | |
| 694 | #[tokio::test] |
| 695 | async fn test_get_current_commit() { |
nothing calls this directly
no test coverage detected