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

Method TestGetPort

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

Source from the content-addressed store, hash-verified

54// Tests of initialization/shutdown
55
56void ConnectivityTest::TestGetPort() {
57 std::unique_ptr<FlightServerBase> server = TestFlightServer::Make();
58
59 ASSERT_OK_AND_ASSIGN(auto location, Location::ForScheme(transport(), "127.0.0.1", 0));
60 FlightServerOptions options(location);
61 ASSERT_OK(server->Init(options));
62 ASSERT_GT(server->port(), 0);
63}
64void ConnectivityTest::TestBuilderHook() {
65 std::unique_ptr<FlightServerBase> server = TestFlightServer::Make();
66

Callers

nothing calls this directly

Calls 3

MakeFunction · 0.50
InitMethod · 0.45
portMethod · 0.45

Tested by

no test coverage detected