diff options
author | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-27 13:35:46 +0100 |
---|---|---|
committer | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-27 13:35:46 +0100 |
commit | 7a936258ddc93e012be8182a08f3c3e220bc6cbc (patch) | |
tree | ae972421e7f646e784fb4ad9d2e92122125d3b83 /tests | |
parent | 13bd14d930006bc01b89f9fd4d0b074c387ef92f (diff) | |
download | libgit2-7a936258ddc93e012be8182a08f3c3e220bc6cbc.tar.gz |
add test for shallow feature flag
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shallow/feature_flag.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/shallow/feature_flag.c b/tests/shallow/feature_flag.c new file mode 100644 index 000000000..25d283a44 --- /dev/null +++ b/tests/shallow/feature_flag.c @@ -0,0 +1,11 @@ +#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)); +} |