diff --git a/tests-clar/tag/read.c b/tests-clar/object/tag/read.c similarity index 92% rename from tests-clar/tag/read.c rename to tests-clar/object/tag/read.c index de7feedb2..04d4d02c5 100644 --- a/tests-clar/tag/read.c +++ b/tests-clar/object/tag/read.c @@ -30,18 +30,18 @@ exit: // Fixture setup and teardown -void test_tag_read__initialize(void) +void test_object_tag_read__initialize(void) { g_repo = cl_git_sandbox_init("testrepo"); } -void test_tag_read__cleanup(void) +void test_object_tag_read__cleanup(void) { cl_git_sandbox_cleanup(); } -void test_tag_read__parse(void) +void test_object_tag_read__parse(void) { // read and parse a tag from the repository git_tag *tag1, *tag2; @@ -72,7 +72,7 @@ void test_tag_read__parse(void) git_commit_free(commit); } -void test_tag_read__list(void) +void test_object_tag_read__list(void) { // list all tag names from the repository git_strarray tag_list; @@ -84,7 +84,7 @@ void test_tag_read__list(void) git_strarray_free(&tag_list); } -void test_tag_read__list_pattern(void) +void test_object_tag_read__list_pattern(void) { // list all tag names from the repository matching a specified pattern cl_git_pass(ensure_tag_pattern_match(g_repo, "", 3)); @@ -96,7 +96,7 @@ void test_tag_read__list_pattern(void) cl_git_pass(ensure_tag_pattern_match(g_repo, "e90810[ab]", 1)); } -void test_tag_read__parse_without_tagger(void) +void test_object_tag_read__parse_without_tagger(void) { // read and parse a tag without a tagger field git_repository *bad_tag_repo; diff --git a/tests-clar/tag/write.c b/tests-clar/object/tag/write.c similarity index 95% rename from tests-clar/tag/write.c rename to tests-clar/object/tag/write.c index 38fc1c9c4..01e9d9cba 100644 --- a/tests-clar/tag/write.c +++ b/tests-clar/object/tag/write.c @@ -59,19 +59,19 @@ static int loose_object_mode(const char *repository_folder, git_object *object) // Fixture setup and teardown -void test_tag_write__initialize(void) +void test_object_tag_write__initialize(void) { g_repo = cl_git_sandbox_init("testrepo"); } -void test_tag_write__cleanup(void) +void test_object_tag_write__cleanup(void) { cl_git_sandbox_cleanup(); } -void test_tag_write__basic(void) +void test_object_tag_write__basic(void) { // write a tag to the repository and read it again git_tag *tag; @@ -123,7 +123,7 @@ void test_tag_write__basic(void) git_tag_free(tag); } -void test_tag_write__overwrite(void) +void test_object_tag_write__overwrite(void) { // Attempt to write a tag bearing the same name than an already existing tag git_oid target_id, tag_id; @@ -150,7 +150,7 @@ void test_tag_write__overwrite(void) } -void test_tag_write__replace(void) +void test_object_tag_write__replace(void) { // Replace an already existing tag git_oid target_id, tag_id, old_tag_id; @@ -187,7 +187,7 @@ void test_tag_write__replace(void) git_reference_free(ref_tag); } -void test_tag_write__lightweight(void) +void test_object_tag_write__lightweight(void) { // write a lightweight tag to the repository and read it again git_oid target_id, object_id; @@ -216,7 +216,7 @@ void test_tag_write__lightweight(void) git_reference_free(ref_tag); } -void test_tag_write__lightweight_over_existing(void) +void test_object_tag_write__lightweight_over_existing(void) { // Attempt to write a lightweight tag bearing the same name than an already existing tag git_oid target_id, object_id, existing_object_id; @@ -238,7 +238,7 @@ void test_tag_write__lightweight_over_existing(void) git_object_free(target); } -void test_tag_write__delete(void) +void test_object_tag_write__delete(void) { // Delete an already existing tag git_reference *ref_tag;