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

Method TestDoGetReadOptions

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

Source from the content-addressed store, hash-verified

1116 ASSERT_OK(server_->Shutdown());
1117}
1118void IpcOptionsTest::TestDoGetReadOptions() {
1119 // Call DoGet, but with a very low read nesting depth set to fail the call.
1120 Ticket ticket{""};
1121 auto options = FlightCallOptions();
1122 options.read_options.max_recursion_depth = 1;
1123 std::unique_ptr<FlightStreamReader> stream;
1124 ASSERT_OK_AND_ASSIGN(stream, client_->DoGet(options, ticket));
1125 ASSERT_RAISES(Invalid, stream->Next());
1126}
1127void IpcOptionsTest::TestDoPutWriteOptions() {
1128 // Call DoPut, but with a very low write nesting depth set to fail the call.
1129 std::unique_ptr<FlightStreamWriter> writer;

Callers

nothing calls this directly

Calls 4

FlightCallOptionsClass · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
DoGetMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected