Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-11-15 02:05:52 +0400
committerBen Straub <bs@github.com>2013-11-15 02:05:52 +0400
commit1782038144ef3413831801bb9c2f3038a84ac6f4 (patch)
treef074cc30890a20f5418c10fae1815ca516588a27 /tests-clar/refs/branches/upstreamname.c
parent7b947bf5cc59eefa83c28eb5f5fd8434207ebb8b (diff)
Rename tests-clar to tests
Diffstat (limited to 'tests-clar/refs/branches/upstreamname.c')
-rw-r--r--tests-clar/refs/branches/upstreamname.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/tests-clar/refs/branches/upstreamname.c b/tests-clar/refs/branches/upstreamname.c
deleted file mode 100644
index f05607d44..000000000
--- a/tests-clar/refs/branches/upstreamname.c
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "clar_libgit2.h"
-#include "branch.h"
-
-static git_repository *repo;
-static git_buf upstream_name;
-
-void test_refs_branches_upstreamname__initialize(void)
-{
- cl_git_pass(git_repository_open(&repo, cl_fixture("testrepo.git")));
-
- git_buf_init(&upstream_name, 0);
-}
-
-void test_refs_branches_upstreamname__cleanup(void)
-{
- git_buf_free(&upstream_name);
-
- git_repository_free(repo);
- repo = NULL;
-}
-
-void test_refs_branches_upstreamname__can_retrieve_the_remote_tracking_reference_name_of_a_local_branch(void)
-{
- cl_git_pass(git_branch_upstream__name(
- &upstream_name, repo, "refs/heads/master"));
-
- cl_assert_equal_s("refs/remotes/test/master", git_buf_cstr(&upstream_name));
-}
-
-void test_refs_branches_upstreamname__can_retrieve_the_local_upstream_reference_name_of_a_local_branch(void)
-{
- cl_git_pass(git_branch_upstream__name(
- &upstream_name, repo, "refs/heads/track-local"));
-
- cl_assert_equal_s("refs/heads/master", git_buf_cstr(&upstream_name));
-}
-
-void test_refs_branches_upstreamname__can_return_the_size_of_thelocal_upstream_reference_name_of_a_local_branch(void)
-{
- cl_assert_equal_i((int)strlen("refs/heads/master") + 1,
- git_branch_upstream_name(NULL, 0, repo, "refs/heads/track-local"));
-}