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

Function check_unique

common/json_param.c:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225static bool check_unique(struct param *copy,
226 int (*compar) (const struct param *a,
227 const struct param *b, void *unused))
228{
229 asort(copy, tal_count(copy), compar, NULL);
230 return check_distinct(copy, compar);
231}
232
233/*
234 * Verify consistent internal state.

Callers 1

check_paramsFunction · 0.85

Calls 1

check_distinctFunction · 0.85

Tested by

no test coverage detected