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

Function AssertAsyncGeneratorMatch

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

Source from the content-addressed store, hash-verified

85
86template <typename T>
87void AssertAsyncGeneratorMatch(std::vector<T> expected, AsyncGenerator<T> actual) {
88 auto vec_future = CollectAsyncGenerator(std::move(actual));
89 EXPECT_OK_AND_ASSIGN(auto vec, vec_future.result());
90 EXPECT_EQ(expected, vec);
91}
92
93template <typename T>
94void AssertGeneratorExhausted(AsyncGenerator<T>& gen) {

Callers 2

TESTFunction · 0.85
TEST_PFunction · 0.85

Calls 1

CollectAsyncGeneratorFunction · 0.85

Tested by

no test coverage detected