| 1741 | } |
| 1742 | |
| 1743 | void 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 | |
| 1757 | static void CheckErrorDetail(const Status& status) { |
| 1758 | auto detail = FlightStatusDetail::UnwrapStatus(status); |
nothing calls this directly
no test coverage detected