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

Function feature_set_eq

common/test/run-features.c:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124static bool feature_set_eq(const struct feature_set *f1,
125 const struct feature_set *f2)
126{
127 /* We assume minimal sizing */
128 for (size_t i = 0; i < ARRAY_SIZE(f1->bits); i++) {
129 if (!memeq(f1->bits[i], tal_bytelen(f1->bits[i]),
130 f2->bits[i], tal_bytelen(f2->bits[i])))
131 return false;
132 }
133 return true;
134}
135
136static void test_feature_set_or(void)
137{

Callers 2

test_feature_set_orFunction · 0.85
test_feature_set_subFunction · 0.85

Calls 2

memeqFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected