MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / TEST_F

Function TEST_F

tests/integration/WireServerTest.cpp:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89};
90
91TEST_F(TCPSocketServerTest, exitsOnFirstConnectionClosed) {
92 // given
93 asio::ip::tcp::iostream client(server->listenEndpoint());
94 ASSERT_THAT(client, IsConnected());
95 ASSERT_THAT(server->listenEndpoint().address().to_string(), std::string("0.0.0.0"));
96
97 // when
98 client.close();
99
100 // then
101 EXPECT_THAT(serverThread, EventuallyTerminates());
102}
103
104TEST_F(TCPSocketServerTest, moreThanOneClientCanConnect) {
105 // given

Callers

nothing calls this directly

Calls 1

listenEndpointMethod · 0.80

Tested by

no test coverage detected