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

Function pq_entry_equal

t/unit-tests/u-reftable-pq.c:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23static int pq_entry_equal(struct pq_entry *a, struct pq_entry *b)
24{
25 int cmp;
26 cl_assert_equal_i(reftable_record_cmp(a->rec, b->rec, &cmp), 0);
27 return !cmp && (a->index == b->index);
28}
29
30void test_reftable_pq__record(void)
31{

Calls 1

reftable_record_cmpFunction · 0.85

Tested by 3

test_reftable_pq__recordFunction · 0.68
test_reftable_pq__indexFunction · 0.68