diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-13 03:48:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-13 03:48:56 +0300 |
commit | b5cb8b8ed49f80ebbb82cacb55c16a03318db30b (patch) | |
tree | 0a2d308fdf870a8b0564b585087abaea867457ec /src/resources/db | |
parent | 0d9761f9a6b375f6018a16b21cf2fbbb01155c08 (diff) | |
download | manaplus-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.gz manaplus-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.bz2 manaplus-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.xz manaplus-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.zip |
Fix unit tests after latest changes.
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/groupdb.cpp | 7 | ||||
-rw-r--r-- | src/resources/db/groupdb.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/db/groupdb.cpp b/src/resources/db/groupdb.cpp index ab9a2958d..4b25e94bd 100644 --- a/src/resources/db/groupdb.cpp +++ b/src/resources/db/groupdb.cpp @@ -127,3 +127,10 @@ const std::string &GroupDb::getLongName(const int id) } return (*it).second.longName; } + +#ifdef UNITTESTS +GroupDb::GroupInfos &GroupDb::getGroups() +{ + return mGroups; +} +#endif // UNITTESTS diff --git a/src/resources/db/groupdb.h b/src/resources/db/groupdb.h index 60667b3d8..f2c027120 100644 --- a/src/resources/db/groupdb.h +++ b/src/resources/db/groupdb.h @@ -42,6 +42,10 @@ namespace GroupDb const std::string &getLongName(const int id); typedef std::map<int, GroupInfo> GroupInfos; + +#ifdef UNITTESTS + GroupDb::GroupInfos &getGroups(); +#endif // UNITTESTS } // namespace GroupDb #endif // RESOURCES_DB_GROUPDB_H |