MCPcopy Create free account
hub / github.com/git/git / check_contains

Function check_contains

t/unit-tests/u-oidtree.c:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27static void check_contains(struct oidtree *ot, const char *hex, bool expected)
28{
29 struct object_id oid;
30
31 cl_parse_any_oid(hex, &oid);
32 cl_assert_equal_i(oidtree_contains(ot, &oid), expected);
33}
34
35struct expected_hex_iter {
36 size_t i;

Callers 1

test_oidtree__containsFunction · 0.85

Calls 2

cl_parse_any_oidFunction · 0.85
oidtree_containsFunction · 0.85

Tested by 1

test_oidtree__containsFunction · 0.68