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
5df7207a
Commit
5df7207a
authored
Nov 17, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repo: readonly tests don't need a sandboxed repo
parent
0e95e70a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
11 deletions
+1
-11
tests-clar/repo/getters.c
+1
-11
No files found.
tests-clar/repo/getters.c
View file @
5df7207a
#include "clar_libgit2.h"
#include "clar_libgit2.h"
void
test_repo_getters__initialize
(
void
)
{
cl_fixture_sandbox
(
"testrepo.git"
);
}
void
test_repo_getters__cleanup
(
void
)
{
cl_fixture_cleanup
(
"testrepo.git"
);
}
void
test_repo_getters__empty
(
void
)
void
test_repo_getters__empty
(
void
)
{
{
git_repository
*
repo_empty
,
*
repo_normal
;
git_repository
*
repo_empty
,
*
repo_normal
;
...
@@ -28,7 +18,7 @@ void test_repo_getters__retrieving_the_odb_honors_the_refcount(void)
...
@@ -28,7 +18,7 @@ void test_repo_getters__retrieving_the_odb_honors_the_refcount(void)
git_odb
*
odb
;
git_odb
*
odb
;
git_repository
*
repo
;
git_repository
*
repo
;
cl_git_pass
(
git_repository_open
(
&
repo
,
"testrepo.git"
));
cl_git_pass
(
git_repository_open
(
&
repo
,
cl_fixture
(
"testrepo.git"
)
));
cl_git_pass
(
git_repository_odb
(
&
odb
,
repo
));
cl_git_pass
(
git_repository_odb
(
&
odb
,
repo
));
cl_assert
(((
git_refcount
*
)
odb
)
->
refcount
==
2
);
cl_assert
(((
git_refcount
*
)
odb
)
->
refcount
==
2
);
...
...
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