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

Function AssertAsyncGeneratorMatch

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

Source from the content-addressed store, hash-verified

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

Callers 2

TESTFunction · 0.85
TEST_PFunction · 0.85

Calls 1

CollectAsyncGeneratorFunction · 0.85

Tested by

no test coverage detected