#include "test-lib.h" #include "lib-oid.h" #include "oidtree.h" #include "hash.h" #include "hex.h" #include "strvec.h" #define FILL_TREE(tree, ...) … static int fill_tree_loc(struct oidtree *ot, const char *hexes[], size_t n) { … } static void check_contains(struct oidtree *ot, const char *hex, int expected) { … } struct expected_hex_iter { … }; static enum cb_next check_each_cb(const struct object_id *oid, void *data) { … } LAST_ARG_MUST_BE_NULL static void check_each(struct oidtree *ot, const char *query, ...) { … } static void setup(void (*f)(struct oidtree *ot)) { … } static void t_contains(struct oidtree *ot) { … } static void t_each(struct oidtree *ot) { … } int cmd_main(int argc UNUSED, const char **argv UNUSED) { … }