MCPcopy Create free account
hub / github.com/SergeyMakeev/ExcaliburHash / makeTinyHashTable

Function makeTinyHashTable

ExcaliburHashTest03.cpp:368–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366
367static const int kNumElementsInTinyTable = 1;
368static Excalibur::HashTable<int, int> makeTinyHashTable(int valueOffset = 0)
369{
370 Excalibur::HashTable<int, int> ht;
371 EXPECT_TRUE(ht.empty());
372 for (int i = 0; i < kNumElementsInTinyTable; i++)
373 {
374 ht.emplace(i, i + valueOffset);
375 }
376 EXPECT_EQ(ht.size(), uint32_t(kNumElementsInTinyTable));
377 return ht;
378}
379
380static const int kNumElementsInHugeTable = 1000;
381static Excalibur::HashTable<int, int> makeHugeHashTable()

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected