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
eb46fb2b
Commit
eb46fb2b
authored
Mar 08, 2014
by
Jiri Pospisil
Committed by
Russell Belfer
Mar 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add failing test for git_object_short_id
parent
89499078
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
tests/object/shortid.c
+7
-0
tests/resources/duplicate.git/objects/03/8d718da6a1ebbc6a7780a96ed75a70cc2ad6e2
+0
-0
No files found.
tests/object/shortid.c
View file @
eb46fb2b
...
...
@@ -26,6 +26,13 @@ void test_object_shortid__select(void)
cl_assert_equal_s
(
"ce01362"
,
shorty
.
ptr
);
git_object_free
(
obj
);
git_oid_fromstr
(
&
full
,
"038d718da6a1ebbc6a7780a96ed75a70cc2ad6e2"
);
cl_git_pass
(
git_object_lookup
(
&
obj
,
_repo
,
&
full
,
GIT_OBJ_ANY
));
cl_git_pass
(
git_object_short_id
(
&
shorty
,
obj
));
cl_assert_equal_i
(
7
,
shorty
.
size
);
cl_assert_equal_s
(
"038d718"
,
shorty
.
ptr
);
git_object_free
(
obj
);
git_oid_fromstr
(
&
full
,
"dea509d097ce692e167dfc6a48a7a280cc5e877e"
);
cl_git_pass
(
git_object_lookup
(
&
obj
,
_repo
,
&
full
,
GIT_OBJ_ANY
));
cl_git_pass
(
git_object_short_id
(
&
shorty
,
obj
));
...
...
tests/resources/duplicate.git/objects/03/8d718da6a1ebbc6a7780a96ed75a70cc2ad6e2
0 → 100644
View file @
eb46fb2b
File added
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