From 470f45db7af8a9976c89f9d69f1637085ebb0fcc Mon Sep 17 00:00:00 2001 From: Treeston Date: Wed, 2 Sep 2020 12:42:02 +0200 Subject: UnitTests: |Hspell and |Htalent unit testing --- tests/DummyData.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/DummyData.h') 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 #include 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 _storage; + std::list _storage; DBCStorage& _store; }; static void LoadAchievementTemplates(); static void LoadItemTemplates(); + static void LoadSpellInfo(); private: static ItemTemplate& GetItemTemplate(uint32 id, std::string_view name); -- cgit v1.2.3