MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / test_git_operations_remotes

Function test_git_operations_remotes

src/git_operations.rs:675–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 4

add_remoteFunction · 0.85
remove_remoteFunction · 0.85
initMethod · 0.80
pathMethod · 0.80

Tested by

no test coverage detected