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

Method AssertCanConsume

cpp/src/arrow/dataset/scanner_test.cc:2051–2057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2049 : generator(std::move(generator)), next() {}
2050
2051 void AssertCanConsume() {
2052 if (!next.is_valid()) {
2053 next = generator();
2054 }
2055 ASSERT_FINISHES_OK(next);
2056 next = Future<EnumeratedRecordBatch>();
2057 }
2058
2059 void AssertCannotConsume() {
2060 if (!next.is_valid()) {

Callers 1

TEST_FFunction · 0.80

Calls 1

is_validMethod · 0.45

Tested by

no test coverage detected