Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
6bb74993
Commit
6bb74993
authored
Mar 30, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved tag tests to object suite.
parent
9a39a364
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
tests-clar/object/tag/read.c
+6
-6
tests-clar/object/tag/write.c
+8
-8
No files found.
tests-clar/tag/read.c
→
tests-clar/
object/
tag/read.c
View file @
6bb74993
...
...
@@ -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
;
...
...
tests-clar/tag/write.c
→
tests-clar/
object/
tag/write.c
View file @
6bb74993
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment