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

Method TestGetFlightInfoMetadata

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

Source from the content-addressed store, hash-verified

1741}
1742
1743void ErrorHandlingTest::TestGetFlightInfoMetadata() {
1744 auto descr = FlightDescriptor::Path({"metadata"});
1745 EXPECT_RAISES_WITH_MESSAGE_THAT(Invalid, ::testing::HasSubstr("Expected"),
1746 client_->GetFlightInfo(descr));
1747 // This is janky because we don't/can't expose grpc::CallContext.
1748 // See https://github.com/apache/arrow/issues/34607
1749 ASSERT_THAT(GetHeaders(), ::testing::IsSupersetOf({
1750 std::make_pair("x-header", "header-value"),
1751 std::make_pair("x-header-bin", "header\x01value"),
1752 std::make_pair("x-trailer", "trailer-value"),
1753 std::make_pair("x-trailer-bin", "trailer\x01value"),
1754 }));
1755}
1756
1757static void CheckErrorDetail(const Status& status) {
1758 auto detail = FlightStatusDetail::UnwrapStatus(status);

Callers

nothing calls this directly

Calls 2

PathFunction · 0.70
GetFlightInfoMethod · 0.45

Tested by

no test coverage detected