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

Method SetUp

cpp/src/arrow/flight/sql/server_test.cc:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149 protected:
150 void SetUp() override {
151 ASSERT_OK_AND_ASSIGN(auto location, Location::ForGrpcTcp("0.0.0.0", 0));
152 arrow::flight::FlightServerOptions options(location);
153 ASSERT_OK_AND_ASSIGN(server, example::SQLiteFlightSqlServer::Create());
154 ASSERT_OK(server->Init(options));
155
156 ASSERT_OK_AND_ASSIGN(location, Location::ForGrpcTcp("localhost", server->port()));
157 ASSERT_OK_AND_ASSIGN(auto client, FlightClient::Connect(location));
158
159 sql_client = std::make_unique<FlightSqlClient>(std::move(client));
160 }
161
162 void TearDown() override {
163 ASSERT_OK(sql_client->Close());

Callers

nothing calls this directly

Calls 3

ASSERT_OK_AND_ASSIGNFunction · 0.50
InitMethod · 0.45
portMethod · 0.45

Tested by

no test coverage detected