| 155 | } |
| 156 | |
| 157 | static string serialize_associations(const unordered_map<int32_t, vector<int32_t>> & data) { |
| 158 | vector<string> elems; |
| 159 | for (auto &[key, vec] : data) { |
| 160 | vector<int32_t> combined = vec; |
| 161 | combined.push_back(key); |
| 162 | elems.push_back(join_strings("/", combined)); |
| 163 | } |
| 164 | return join_strings(",", elems); |
| 165 | } |
| 166 | |
| 167 | static void store_associations(const unordered_map<int32_t, vector<int32_t>> & data, const char * suffix) { |
| 168 | get_config(suffix, true).set_str(serialize_associations(data)); |
no test coverage detected