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

Method getLocalSeat

source/tests/mocks/ODClientTest.cpp:450–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450SeatData* ODClientTest::getLocalSeat() const
451{
452 if(mLocalPlayerIndex >= mPlayers.size())
453 {
454 BOOST_CHECK(false);
455 return nullptr;
456 }
457
458 if(mPlayers[mLocalPlayerIndex].mSeat == nullptr)
459 {
460 BOOST_CHECK(false);
461 return nullptr;
462 }
463
464 return mPlayers[mLocalPlayerIndex].mSeat;
465}
466
467void ODClientTest::runFor(int32_t timeInMillis)
468{

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