MCPcopy Create free account
hub / github.com/facebook/CacheLib / makeHash

Function makeHash

cachelib/common/tests/ApproxSplitSetTest.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using facebook::cachelib::test_util::getRandomAsciiStr;
32
33uint64_t makeHash(const std::string& k) {
34 return folly::hash::SpookyHashV2::Hash64(k.data(), k.size(), 0);
35}
36
37TEST(ApproxSplitSet, Basic) {
38 ApproxSplitSet s{6, 2};

Callers 1

TESTFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected