Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References BUILTIN_MOD_NAME, DIR_DELIM, Server::getBuiltinLuaPath(), TestBase::getTestTempDirectory(), TestBase::num_tests_failed, rawstream, ActiveObject::setId(), TEST, testCallbacks(), testCallbacksSwap(), testMove(), testMoveFillStack(), testMovePartial(), testMoveSomewhere(), testMoveSomewherePartial(), testMoveUnallowed(), testSwap(), testSwapFromUnallowed(), testSwapToUnallowed(), and BaseException::what().
void TestMoveAction::testCallbacks | ( | ServerActiveObject * | obj, |
Server * | server ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), check_function(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testCallbacksSwap | ( | ServerActiveObject * | obj, |
Server * | server ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), check_function(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testMove | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testMoveFillStack | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References Inventory::addList(), apply_action(), InventoryList::changeItem(), MockInventoryManager::p1, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testMovePartial | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testMoveSomewhere | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testMoveSomewherePartial | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), InventoryList::changeItem(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testMoveUnallowed | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), ItemStack::empty(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testSwap | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testSwapFromUnallowed | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().
void TestMoveAction::testSwapToUnallowed | ( | ServerActiveObject * | obj, |
IGameDef * | gamedef ) |
References InventoryList::addItem(), Inventory::addList(), apply_action(), InventoryList::getItem(), ItemStack::getItemString(), Inventory::getList(), MockInventoryManager::p1, MockInventoryManager::p2, parse_itemstack(), and UASSERT.
Referenced by runTests().