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

Function ASSERT_OK_AND_ASSIGN

cpp/src/arrow/flight/test_definitions.cc:325–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324void DataTest::TestOverflowClientBatch() {
325 ASSERT_OK_AND_ASSIGN(auto batch, VeryLargeBatch());
326 {
327 // DoPut: check for overflow on large batch
328 auto descr = FlightDescriptor::Path({""});
329 ASSERT_OK_AND_ASSIGN(auto do_put_result, client_->DoPut(descr, batch->schema()));
330 EXPECT_RAISES_WITH_MESSAGE_THAT(
331 Invalid, ::testing::HasSubstr("Cannot send record batches exceeding 2GiB yet"),
332 do_put_result.writer->WriteRecordBatch(*batch));
333 ASSERT_OK(do_put_result.writer->Close());
334 }
335 {
336 // DoExchange: check for overflow on large batch from client
337 auto descr = FlightDescriptor::Command("counter");

Callers 9

TestBrokenConnectionMethod · 0.70
TestDoExchangeMethod · 0.70
TestDoExchangePutMethod · 0.70
TestDoExchangeTotalMethod · 0.70
TestDoGetMethod · 0.70
TestDoGetDictionariesMethod · 0.70
TestDoGetReadOptionsMethod · 0.70
SetUpTestMethod · 0.70

Calls 3

PathFunction · 0.70
WriteRecordBatchMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected