MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getKeys

Method getKeys

valdi/test/runtime/ValueMarshallerRegistry_tests.cpp:330–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 Ref<ValueArray> getKeys() const {
331 auto keys = ValueArray::make(_map.size());
332
333 size_t i = 0;
334 for (const auto& it : _map) {
335 (*keys)[i] = it.first;
336 i++;
337 }
338
339 std::sort(keys->begin(), keys->end());
340
341 return keys;
342 }
343
344 Value toValue() final {
345 auto keys = getKeys();

Callers 1

visitES6CollectionMethod · 0.80

Calls 3

endMethod · 0.65
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected