MCPcopy Create free account
hub / github.com/ElementsProject/lightning / check_unique

Function check_unique

common/json_param.c:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static void check_unique(struct param *copy,
235 int (*compar) (const struct param *a,
236 const struct param *b, void *unused))
237{
238 asort(copy, tal_count(copy), compar, NULL);
239 check_distinct(copy, compar);
240}
241
242/*
243 * Verify consistent internal state.

Callers 1

check_paramsFunction · 0.85

Calls 1

check_distinctFunction · 0.85

Tested by

no test coverage detected