MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / enumerate

Method enumerate

src/storage/teststorageprovider.cpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool TestStorageProvider::enumerate(callback fn) const
64{
65 bool fAll = true;
66 for (auto &pair : m_map)
67 {
68 if (!fn(pair.first.data(), pair.first.size(), pair.second.data(), pair.second.size()))
69 {
70 fAll = false;
71 break;
72 }
73 }
74 return fAll;
75}
76
77bool TestStorageProvider::enumerate_hashslot(callback fn, unsigned int hashslot) const
78{

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected