summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-10-24 12:19:13 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-10-24 13:40:42 +0200
commit0862f617da08cb371a647b3e454745f3b570de63 (patch)
tree9960b491dc1cc4d447456067bc8585c88fda138f /tests
parent4bb6ffb6bb8ad9d49eb173350be965183cd09c96 (diff)
downloadlibgit2-cmn/remove-supported-url.tar.gz
remote: delete git_remote_supported_url()cmn/remove-supported-url
This function does not in fact tell us anything, as almost anything with a colon in it is a valid rsync-style SSH path; it can not tell us that we do not support ftp or afp or similar as those are still valid SSH paths and we do support that.
Diffstat (limited to 'tests')
-rw-r--r--tests/network/remote/remotes.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/network/remote/remotes.c b/tests/network/remote/remotes.c
index df424e961..543a3a31b 100644
--- a/tests/network/remote/remotes.c
+++ b/tests/network/remote/remotes.c
@@ -91,26 +91,6 @@ void test_network_remote_remotes__error_when_no_push_available(void)
git_remote_free(r);
}
-void test_network_remote_remotes__supported_urls(void)
-{
- int ssh_supported = 0, https_supported = 0;
-
-#ifdef GIT_SSH
- ssh_supported = 1;
-#endif
-
-#if defined(GIT_SSL) || defined(GIT_WINHTTP)
- https_supported = 1;
-#endif
-
- cl_assert(git_remote_supported_url("git://github.com/libgit2/libgit2"));
- cl_assert(git_remote_supported_url("http://github.com/libgit2/libgit2"));
-
- cl_assert_equal_i(ssh_supported, git_remote_supported_url("git@github.com:libgit2/libgit2.git"));
- cl_assert_equal_i(ssh_supported, git_remote_supported_url("ssh://git@github.com/libgit2/libgit2.git"));
- cl_assert_equal_i(https_supported, git_remote_supported_url("https://github.com/libgit2/libgit2.git"));
-}
-
void test_network_remote_remotes__refspec_parsing(void)
{
cl_assert_equal_s(git_refspec_src(_refspec), "refs/heads/*");