MCPcopy Create free account
hub / github.com/apache/thrift / BOOST_FIXTURE_TEST_CASE

Function BOOST_FIXTURE_TEST_CASE

lib/cpp/test/TNonblockingServerTest.cpp:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181BOOST_AUTO_TEST_SUITE(TNonblockingServerTest)
182
183BOOST_FIXTURE_TEST_CASE(get_specified_port, Fixture) {
184 int specified_port = startServer(12345);
185 BOOST_REQUIRE_GE(specified_port, 12345);
186 BOOST_REQUIRE_EQUAL(server->getListenPort(), specified_port);
187 BOOST_CHECK(canCommunicate(specified_port));
188
189 server->stop();
190}
191
192BOOST_FIXTURE_TEST_CASE(get_assigned_port, Fixture) {
193 int specified_port = startServer(0);

Callers

nothing calls this directly

Calls 2

getListenPortMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected