MCPcopy Create free account
hub / github.com/bytedance/bolt / readAndCheckPins

Method readAndCheckPins

bolt/common/caching/tests/SsdFileTest.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 void readAndCheckPins(const std::vector<CachePin>& pins) {
185 std::vector<SsdPin> ssdPins;
186 ssdPins.reserve(pins.size());
187 for (auto& pin : pins) {
188 ssdPins.push_back(ssdFile_->find(
189 RawFileCacheKey{fileName_.id(), pin.entry()->key().offset}));
190 EXPECT_FALSE(ssdPins.back().empty());
191 }
192 ssdFile_->load(ssdPins, pins);
193 for (auto& pin : pins) {
194 checkContents(pin.entry()->data(), pin.entry()->size());
195 }
196 }
197
198 void checkEvictionBlocked(
199 std::vector<TestEntry>& allEntries,

Callers

nothing calls this directly

Calls 11

keyMethod · 0.80
entryMethod · 0.80
backMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
findMethod · 0.45
idMethod · 0.45
emptyMethod · 0.45
loadMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected