diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-17 00:41:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-17 00:41:16 +0300 |
commit | caf2e3c4fb749561c37eaff324de86a9edf83808 (patch) | |
tree | c20d8b2a5863c0366f0804fe7a4361ccfc16a927 /src/resources/db/itemdb.cpp | |
parent | 0ad55dae62f1c8295517bf87844368575a813d57 (diff) | |
download | manaverse-caf2e3c4fb749561c37eaff324de86a9edf83808.tar.gz manaverse-caf2e3c4fb749561c37eaff324de86a9edf83808.tar.bz2 manaverse-caf2e3c4fb749561c37eaff324de86a9edf83808.tar.xz manaverse-caf2e3c4fb749561c37eaff324de86a9edf83808.zip |
Add unit tests for links replace function.
Diffstat (limited to 'src/resources/db/itemdb.cpp')
-rw-r--r-- | src/resources/db/itemdb.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index b8e49a2db..b4af71c17 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -1055,3 +1055,10 @@ static void loadOrderSprite(ItemInfo *const itemInfo, itemInfo->setDrawBefore(direction, sprite); itemInfo->setDrawPriority(direction, priority); } + +#ifdef UNITTESTS +ItemDB::NamedItemInfos &ItemDB::getNamedItemInfosTest() +{ + return mNamedItemInfos; +} +#endif |