diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-02 12:42:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 12:42:02 +0200 |
commit | 470f45db7af8a9976c89f9d69f1637085ebb0fcc (patch) | |
tree | 84f809fee0df1c5592fb967f60f1b3d9c4003d83 /tests/DummyData.h | |
parent | d0b91f69279a823be159590c09945bc426f50d3e (diff) |
UnitTests: |Hspell and |Htalent unit testing
Diffstat (limited to 'tests/DummyData.h')
-rw-r--r-- | tests/DummyData.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/DummyData.h b/tests/DummyData.h index f1cf76c073a..4961d9323bd 100644 --- a/tests/DummyData.h +++ b/tests/DummyData.h @@ -22,10 +22,13 @@ #include "Define.h" #include "DBCStore.h" +#include <list> #include <string_view> struct ItemTemplate; +class SpellInfo; + class UnitTestDataLoader { public: @@ -59,13 +62,19 @@ class UnitTestDataLoader _store._indexTable.AsT[entry.*ID] = &entry; } + bool Empty() const + { + return !_store._indexTable.AsT; + } + private: - std::vector<T> _storage; + std::list<T> _storage; DBCStorage<T>& _store; }; static void LoadAchievementTemplates(); static void LoadItemTemplates(); + static void LoadSpellInfo(); private: static ItemTemplate& GetItemTemplate(uint32 id, std::string_view name); |