mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-19 01:12:43 +00:00
remote: Enhance in-memory remote test coverage
This commit is contained in:
parent
7d4b65f608
commit
b0aa14aa3c
@ -109,7 +109,7 @@ GIT_EXTERN(int) git_remote_save(const git_remote *remote);
|
||||
* Get the remote's name
|
||||
*
|
||||
* @param remote the remote
|
||||
* @return a pointer to the name
|
||||
* @return a pointer to the name or NULL for in-memory remotes
|
||||
*/
|
||||
GIT_EXTERN(const char *) git_remote_name(const git_remote *remote);
|
||||
|
||||
|
@ -257,6 +257,8 @@ void test_network_remotes__cannot_save_an_inmemory_remote(void)
|
||||
|
||||
cl_git_pass(git_remote_create_inmemory(&remote, _repo, "git://github.com/libgit2/libgit2", NULL));
|
||||
|
||||
cl_assert_equal_p(NULL, git_remote_name(remote));
|
||||
|
||||
cl_git_fail(git_remote_save(remote));
|
||||
git_remote_free(remote);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user