| 128 | } |
| 129 | |
| 130 | static bool feature_set_eq(const struct feature_set *f1, |
| 131 | const struct feature_set *f2) |
| 132 | { |
| 133 | /* We assume minimal sizing */ |
| 134 | for (size_t i = 0; i < ARRAY_SIZE(f1->bits); i++) { |
| 135 | if (!tal_arr_eq(f1->bits[i], f2->bits[i])) |
| 136 | return false; |
| 137 | } |
| 138 | return true; |
| 139 | } |
| 140 | |
| 141 | static void test_feature_set_or(void) |
| 142 | { |
no outgoing calls
no test coverage detected