diff options
Diffstat (limited to 'tests/config/validkeyname.c')
-rw-r--r-- | tests/config/validkeyname.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/config/validkeyname.c b/tests/config/validkeyname.c index 33699737b..0ef4a9ae3 100644 --- a/tests/config/validkeyname.c +++ b/tests/config/validkeyname.c @@ -46,23 +46,3 @@ void test_config_validkeyname__accessing_requires_a_valid_name(void) assert_invalid_config_key_name("dif.dir\nstat.lines"); assert_invalid_config_key_name("dif.dirstat.li\nes"); } - -static void assert_invalid_config_section_name(git_repository *repo, const char *name) -{ - cl_git_fail_with(git_config_rename_section(repo, "branch.remoteless", name), GIT_EINVALIDSPEC); -} - -void test_config_validkeyname__renaming_a_section_requires_a_valid_name(void) -{ - git_repository *repo; - - cl_git_pass(git_repository_open(&repo, cl_fixture("testrepo.git"))); - - assert_invalid_config_section_name(repo, ""); - assert_invalid_config_section_name(repo, "bra\nch"); - assert_invalid_config_section_name(repo, "branc#"); - assert_invalid_config_section_name(repo, "bra\nch.duh"); - assert_invalid_config_section_name(repo, "branc#.duh"); - - git_repository_free(repo); -} |