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

Method TEST_F

cpp/src/arrow/flight/flight_test.cc:973–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971};
972
973TEST_F(TestErrorMiddleware, TestMetadata) {
974 Action action;
975
976 // Run action1
977 action.type = "action1";
978
979 action.body = Buffer::FromString("action1-content");
980 ASSERT_OK_AND_ASSIGN(auto stream, client_->DoAction(action));
981 Status s = stream->Next().status();
982 ASSERT_FALSE(s.ok());
983 std::shared_ptr<FlightStatusDetail> flightStatusDetail =
984 FlightStatusDetail::UnwrapStatus(s);
985 ASSERT_TRUE(flightStatusDetail);
986 ASSERT_EQ(flightStatusDetail->extra_info(), "error_message");
987}
988
989TEST_F(TestFlightClient, ListFlights) {
990 ASSERT_OK_AND_ASSIGN(auto listing, client_->ListFlights());

Callers

nothing calls this directly

Calls 15

FromStringFunction · 0.85
ExampleFlightInfoFunction · 0.85
AssertEqualFunction · 0.85
ArrayFromJSONFunction · 0.85
CancelledFunction · 0.85
GetTracerFunction · 0.85
extra_infoMethod · 0.80
emplace_backMethod · 0.80
tokenMethod · 0.80
RequestStopMethod · 0.80
CheckCounterMethod · 0.80

Tested by

no test coverage detected