![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Base fixture for AuraScript proc testing. More...
#include "AuraScriptTestFramework.h"
Protected Member Functions | |
| void | SetUp () override |
| void | TearDown () override |
| ProcTestContext & | Context () |
| SpellInfo * | CreateSpellInfo (uint32_t id, uint32_t familyName=0, uint32_t familyFlags0=0, uint32_t familyFlags1=0, uint32_t familyFlags2=0) |
| SpellProcEntry | CreateProcEntry () |
| ProcEventInfo | CreateEventInfo (uint32_t typeMask, uint32_t hitMask, uint32_t spellTypeMask=PROC_SPELL_TYPE_MASK_ALL, uint32_t spellPhaseMask=PROC_SPELL_PHASE_HIT) |
| bool | TestCanProc (SpellProcEntry const &procEntry, uint32_t typeMask, uint32_t hitMask, SpellInfo const *triggerSpell=nullptr) |
| bool | TestSpellFamilyMatch (uint32_t procFamilyName, flag96 const &procFamilyMask, SpellInfo const *triggerSpell) |
Private Attributes | |
| std::unique_ptr< ProcTestContext > | _context |
| std::vector< SpellInfo * > | _spellInfos |
Base fixture for AuraScript proc testing.
This provides infrastructure for testing proc behavior at the unit level without requiring full game objects.
|
inlineprotected |
References _context.
|
inlineprotected |
References ProcEventInfoBuilder::Build(), spellTypeMask, ProcEventInfoBuilder::WithHitMask(), ProcEventInfoBuilder::WithSpellPhaseMask(), ProcEventInfoBuilder::WithSpellTypeMask(), and ProcEventInfoBuilder::WithTypeMask().
|
inlineprotected |
References SpellProcEntryBuilder::Build().
|
inlineprotected |
References _spellInfos, SpellInfoBuilder::Build(), SpellInfoBuilder::WithId(), SpellInfoBuilder::WithSpellFamilyFlags(), and SpellInfoBuilder::WithSpellFamilyName().
|
inlineoverrideprotected |
References _context, and _spellInfos.
Referenced by ArcanePotencyProcTest::SetUp(), SpellProcIntegrationTest::SetUp(), and SpellProcSpellTypeMaskTest::SetUp().
|
inlineoverrideprotected |
References _spellInfos.
|
inlineprotected |
References ProcEventInfoBuilder::Build(), PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_MASK_ALL, sSpellMgr, ProcEventInfoBuilder::WithHitMask(), ProcEventInfoBuilder::WithSpellPhaseMask(), ProcEventInfoBuilder::WithSpellTypeMask(), and ProcEventInfoBuilder::WithTypeMask().
|
inlineprotected |
References SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
|
private |
|
private |
Referenced by CreateSpellInfo(), SetUp(), and TearDown().