MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / runFor

Method runFor

source/tests/mocks/ODClientTest.cpp:467–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void ODClientTest::runFor(int32_t timeInMillis)
468{
469 if(!isConnected())
470 return;
471
472 mContinueLoop = true;
473
474 sf::Clock clock;
475 while(mContinueLoop &&
476 (clock.getElapsedTime().asMilliseconds() < timeInMillis))
477 {
478 processClientSocketMessages();
479 sf::sleep(sf::milliseconds(100));
480 }
481}
482
483void ODClientTest::sendConsoleCmd(const std::string& cmd)
484{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected