#define USE_THE_REPOSITORY_VARIABLE #include "test-lib.h" #include "lib-oid.h" #include "oid-array.h" #include "hex.h" static int fill_array(struct oid_array *array, const char *hexes[], size_t n) { … } static int add_to_oid_array(const struct object_id *oid, void *data) { … } static void t_enumeration(const char **input_args, size_t input_sz, const char **expect_args, size_t expect_sz) { … } #define TEST_ENUMERATION(input, expect, desc) … static void t_lookup(const char **input_hexes, size_t n, const char *query_hex, int lower_bound, int upper_bound) { … } #define TEST_LOOKUP(input_hexes, query, lower_bound, upper_bound, desc) … static void setup(void) { … } int cmd_main(int argc UNUSED, const char **argv UNUSED) { … }