MCPcopy Index your code
hub / github.com/git/git / fill_array

Function fill_array

t/unit-tests/u-oid-array.c:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "hex.h"
7
8static void fill_array(struct oid_array *array, const char *hexes[], size_t n)
9{
10 for (size_t i = 0; i < n; i++) {
11 struct object_id oid;
12
13 cl_parse_any_oid(hexes[i], &oid);
14 oid_array_append(array, &oid);
15 }
16 cl_assert_equal_i(array->nr, n);
17}
18
19static int add_to_oid_array(const struct object_id *oid, void *data)
20{

Callers 2

t_enumerationFunction · 0.85
t_lookupFunction · 0.85

Calls 2

cl_parse_any_oidFunction · 0.85
oid_array_appendFunction · 0.85

Tested by

no test coverage detected