![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Builder class for creating SpellInfo test instances. More...
#include "SpellInfoTestHelper.h"
Public Member Functions | |
| SpellInfoBuilder () | |
| SpellInfoBuilder & | WithId (uint32 id) |
| SpellInfoBuilder & | WithSpellFamilyName (uint32 familyName) |
| SpellInfoBuilder & | WithSpellFamilyFlags (uint32 flag0, uint32 flag1=0, uint32 flag2=0) |
| SpellInfoBuilder & | WithSchoolMask (uint32 schoolMask) |
| SpellInfoBuilder & | WithProcFlags (uint32 procFlags) |
| SpellInfoBuilder & | WithProcChance (uint32 procChance) |
| SpellInfoBuilder & | WithProcCharges (uint32 procCharges) |
| SpellInfoBuilder & | WithDmgClass (uint32 dmgClass) |
| SpellInfoBuilder & | WithAttributesEx3 (uint32 attr) |
| SpellInfoBuilder & | WithEffect (uint8 effIndex, uint32 effect, uint32 auraType=0) |
| SpellInfoBuilder & | WithEffectTriggerSpell (uint8 effIndex, uint32 triggerSpell) |
| SpellInfoBuilder & | WithEffectBasePoints (uint8 effIndex, int32 basePoints) |
| SpellInfoBuilder & | WithEffectDieSides (uint8 effIndex, int32 dieSides) |
| SpellInfoBuilder & | WithAttributes (uint32 attr) |
| SpellInfo * | Build () |
| std::unique_ptr< SpellInfo > | BuildUnique () |
Private Attributes | |
| TestSpellEntryHelper | _entryHelper |
Builder class for creating SpellInfo test instances.
This helper allows easy construction of SpellInfo objects for unit testing without requiring DBC data.
|
inline |
|
inline |
References _entryHelper, and TestSpellEntryHelper::Get().
Referenced by SpellProcTest::CreateSpellInfo(), AuraScriptProcTestFixture::CreateSpellInfo(), SpellProcDatabaseTest::SetUp(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithAttributes().
Referenced by TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithAttributesEx3().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithDmgClass().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithEffect().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithEffectBasePoints().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithEffectDieSides().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithEffectTriggerSpell().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithId().
Referenced by SpellProcTest::CreateSpellInfo(), AuraScriptProcTestFixture::CreateSpellInfo(), SpellProcDatabaseTest::SetUp(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_P().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithProcChance().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithProcCharges().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithProcFlags().
Referenced by TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithSchoolMask().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithSpellFamilyFlags().
Referenced by SpellProcTest::CreateSpellInfo(), AuraScriptProcTestFixture::CreateSpellInfo(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
References _entryHelper, and TestSpellEntryHelper::WithSpellFamilyName().
Referenced by SpellProcTest::CreateSpellInfo(), AuraScriptProcTestFixture::CreateSpellInfo(), SpellProcDatabaseTest::SetUp(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
private |
Referenced by Build(), BuildUnique(), WithAttributes(), WithAttributesEx3(), WithDmgClass(), WithEffect(), WithEffectBasePoints(), WithEffectDieSides(), WithEffectTriggerSpell(), WithId(), WithProcChance(), WithProcCharges(), WithProcFlags(), WithSchoolMask(), WithSpellFamilyFlags(), and WithSpellFamilyName().