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:
authornulltoken <emeric.fermas@gmail.com>2012-09-09 22:39:13 +0400
committernulltoken <emeric.fermas@gmail.com>2012-10-25 19:42:36 +0400
commitfcccf3045f6fbeae5139af7263c2ab986818f154 (patch)
tree7b52c5083dde2b8fc8510fdbb3c364d862136b6f /tests-clar/config
parent3a14d3e2bca4f1af7de978decda1c7ca74ffd3bf (diff)
remote: introduce git_remote_rename()
Diffstat (limited to 'tests-clar/config')
-rw-r--r--tests-clar/config/config_helpers.c15
-rw-r--r--tests-clar/config/config_helpers.h5
2 files changed, 20 insertions, 0 deletions
diff --git a/tests-clar/config/config_helpers.c b/tests-clar/config/config_helpers.c
index 652f80f94..53bd945a0 100644
--- a/tests-clar/config/config_helpers.c
+++ b/tests-clar/config/config_helpers.c
@@ -20,3 +20,18 @@ void assert_config_entry_existence(
else
cl_assert_equal_i(GIT_ENOTFOUND, result);
}
+
+void assert_config_entry_value(
+ git_repository *repo,
+ const char *name,
+ const char *expected_value)
+{
+ git_config *config;
+ const char *out;
+
+ cl_git_pass(git_repository_config__weakptr(&config, repo));
+
+ cl_git_pass(git_config_get_string(&out, config, name));
+
+ cl_assert_equal_s(expected_value, out);
+}
diff --git a/tests-clar/config/config_helpers.h b/tests-clar/config/config_helpers.h
index d18c6c33d..b887b3d38 100644
--- a/tests-clar/config/config_helpers.h
+++ b/tests-clar/config/config_helpers.h
@@ -2,3 +2,8 @@ extern void assert_config_entry_existence(
git_repository *repo,
const char *name,
bool is_supposed_to_exist);
+
+extern void assert_config_entry_value(
+ git_repository *repo,
+ const char *name,
+ const char *expected_value);