summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2021-08-26 05:29:34 -0700
committerlhchavez <lhchavez@lhchavez.com>2021-08-26 05:29:34 -0700
commit63f08e4258122d6f6ea1f04ec8c08779bf300b6c (patch)
tree36375d662c59faa07a647e697bc4c9150b642dda /tests
parent2988f7367cda7337e2b293fb12814d272ef9c33b (diff)
downloadlibgit2-63f08e4258122d6f6ea1f04ec8c08779bf300b6c.tar.gz
Make the defaultable fields defaultable
Also, add `git_commit_graph_writer_options_init`!
Diffstat (limited to 'tests')
-rw-r--r--tests/core/structinit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/core/structinit.c b/tests/core/structinit.c
index b6377bdde..d24da874d 100644
--- a/tests/core/structinit.c
+++ b/tests/core/structinit.c
@@ -1,4 +1,5 @@
#include "clar_libgit2.h"
+#include <git2/sys/commit_graph.h>
#include <git2/sys/config.h>
#include <git2/sys/filter.h>
#include <git2/sys/odb_backend.h>
@@ -97,6 +98,13 @@ void test_core_structinit__compare(void)
git_clone_options, GIT_CLONE_OPTIONS_VERSION, \
GIT_CLONE_OPTIONS_INIT, git_clone_options_init);
+ /* commit_graph_writer */
+ CHECK_MACRO_FUNC_INIT_EQUAL( \
+ git_commit_graph_writer_options, \
+ GIT_COMMIT_GRAPH_WRITER_OPTIONS_VERSION, \
+ GIT_COMMIT_GRAPH_WRITER_OPTIONS_INIT, \
+ git_commit_graph_writer_options_init);
+
/* diff */
CHECK_MACRO_FUNC_INIT_EQUAL( \
git_diff_options, GIT_DIFF_OPTIONS_VERSION, \