Commit 6bab22f4 by Yuang Li

move feature flag tests to tests/grafts/shallow.c

parent 562246b4
......@@ -12,6 +12,7 @@
#include "cache.h"
#include "common.h"
#include "filter.h"
#include "grafts.h"
#include "hash.h"
#include "index.h"
#include "merge_driver.h"
......
......@@ -7,6 +7,16 @@
static git_repository *g_repo;
static git_oid g_shallow_oid;
void test_grafts_shallow__set_feature_flag(void)
{
cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1));
}
void test_grafts_shallow__unset_feature_flag(void)
{
cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0));
}
void test_grafts_shallow__initialize(void)
{
cl_git_pass(git_oid_fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644"));
......
#include "clar_libgit2.h"
void test_shallow_feature_flag__set_feature_flag(void)
{
cl_must_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1));
}
void test_shallow_feature_flag__unset_feature_flag(void)
{
cl_must_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment