MCPcopy Create free account
hub / github.com/apache/arrow / MakeSource

Method MakeSource

cpp/src/arrow/util/async_generator_test.cc:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197 protected:
198 AsyncGenerator<TestInt> MakeSource(const std::vector<TestInt>& items) {
199 std::vector<TestInt> wrapped(items.begin(), items.end());
200 auto gen = util::AsyncVectorIt(std::move(wrapped));
201 if (IsSlow()) {
202 return util::SlowdownABit(std::move(gen));
203 }
204 return gen;
205 }
206
207 AsyncGenerator<TestInt> MakeEmptySource() { return MakeSource({}); }
208

Callers

nothing calls this directly

Calls 4

AsyncVectorItFunction · 0.85
SlowdownABitFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected