MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TestForwardScan

Method TestForwardScan

tensorflow/core/lib/io/table_test.cc:313–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 }
312
313 void TestForwardScan(const std::vector<string>& keys, const KVMap& data) {
314 Iterator* iter = constructor_->NewIterator();
315 ASSERT_TRUE(!iter->Valid());
316 iter->SeekToFirst();
317 for (KVMap::const_iterator model_iter = data.begin();
318 model_iter != data.end(); ++model_iter) {
319 ASSERT_EQ(ToStringPiecePair(data, model_iter), ToStringPiecePair(iter));
320 iter->Next();
321 }
322 ASSERT_TRUE(!iter->Valid());
323 delete iter;
324 }
325
326 void TestRandomAccess(random::SimplePhilox* rnd,
327 const std::vector<string>& keys, const KVMap& data,

Callers

nothing calls this directly

Calls 6

NewIteratorMethod · 0.45
ValidMethod · 0.45
SeekToFirstMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected