AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SpellProcEntryBuilder Class Reference

Builder class for creating SpellProcEntry test instances. More...

#include "ProcEventInfoHelper.h"

Public Member Functions

 SpellProcEntryBuilder ()
 
SpellProcEntryBuilder & WithSchoolMask (uint32 schoolMask)
 
SpellProcEntryBuilder & WithSpellFamilyName (uint32 familyName)
 
SpellProcEntryBuilder & WithSpellFamilyMask (flag96 familyMask)
 
SpellProcEntryBuilder & WithProcFlags (uint32 procFlags)
 
SpellProcEntryBuilder & WithSpellTypeMask (uint32 spellTypeMask)
 
SpellProcEntryBuilder & WithSpellPhaseMask (uint32 spellPhaseMask)
 
SpellProcEntryBuilder & WithHitMask (uint32 hitMask)
 
SpellProcEntryBuilder & WithAttributesMask (uint32 attributesMask)
 
SpellProcEntryBuilder & WithDisableEffectsMask (uint32 disableEffectsMask)
 
SpellProcEntryBuilder & WithProcsPerMinute (float ppm)
 
SpellProcEntryBuilder & WithChance (float chance)
 
SpellProcEntryBuilder & WithCooldown (Milliseconds cooldown)
 
SpellProcEntryBuilder & WithCharges (uint32 charges)
 
SpellProcEntry Build () const
 

Private Attributes

SpellProcEntry _entry
 

Detailed Description

Builder class for creating SpellProcEntry test instances.

This helper allows easy construction of SpellProcEntry objects for unit testing the proc system.

Constructor & Destructor Documentation

◆ SpellProcEntryBuilder()

SpellProcEntryBuilder::SpellProcEntryBuilder ( )
inline
144 {
145 _entry = {};
146 }
SpellProcEntry _entry
Definition ProcEventInfoHelper.h:232

References _entry.

Member Function Documentation

◆ Build()

SpellProcEntry SpellProcEntryBuilder::Build ( ) const
inline
227 {
228 return _entry;
229 }

References _entry.

Referenced by SpellProcTriggeredFilterTest::CreateBasicProcEntry(), AuraScriptProcTestFixture::CreateProcEntry(), 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(), 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(), 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(), 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(), 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(), 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(), 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(), 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(), 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_F().

◆ WithAttributesMask()

◆ WithChance()

◆ WithCharges()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithCharges ( uint32  charges)
inline
221 {
222 _entry.Charges = charges;
223 return *this;
224 }
uint32 Charges
Definition SpellMgr.h:299

References _entry, and SpellProcEntry::Charges.

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ WithCooldown()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithCooldown ( Milliseconds  cooldown)
inline
215 {
216 _entry.Cooldown = cooldown;
217 return *this;
218 }
Milliseconds Cooldown
Definition SpellMgr.h:298

References _entry, and SpellProcEntry::Cooldown.

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ WithDisableEffectsMask()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithDisableEffectsMask ( uint32  disableEffectsMask)
inline
197 {
198 _entry.DisableEffectsMask = disableEffectsMask;
199 return *this;
200 }
uint32 DisableEffectsMask
Definition SpellMgr.h:295

References _entry, and SpellProcEntry::DisableEffectsMask.

Referenced by TEST_F(), and TEST_F().

◆ WithHitMask()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithHitMask ( uint32  hitMask)
inline

◆ WithProcFlags()

◆ WithProcsPerMinute()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithProcsPerMinute ( float  ppm)
inline
203 {
205 return *this;
206 }
float ProcsPerMinute
Definition SpellMgr.h:296

References _entry, and SpellProcEntry::ProcsPerMinute.

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(), TEST_F(), and TEST_F().

◆ WithSchoolMask()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithSchoolMask ( uint32  schoolMask)
inline
149 {
150 _entry.SchoolMask = schoolMask;
151 return *this;
152 }
uint32 SchoolMask
Definition SpellMgr.h:287

References _entry, and SpellProcEntry::SchoolMask.

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ WithSpellFamilyMask()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithSpellFamilyMask ( flag96  familyMask)
inline
161 {
162 _entry.SpellFamilyMask = familyMask;
163 return *this;
164 }
flag96 SpellFamilyMask
Definition SpellMgr.h:289

References _entry, and SpellProcEntry::SpellFamilyMask.

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ WithSpellFamilyName()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithSpellFamilyName ( uint32  familyName)
inline
155 {
156 _entry.SpellFamilyName = familyName;
157 return *this;
158 }
uint32 SpellFamilyName
Definition SpellMgr.h:288

References _entry, and SpellProcEntry::SpellFamilyName.

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(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ WithSpellPhaseMask()

◆ WithSpellTypeMask()

SpellProcEntryBuilder & SpellProcEntryBuilder::WithSpellTypeMask ( uint32  spellTypeMask)
inline
173 {
175 return *this;
176 }
static uint32 spellTypeMask[TOTAL_AURAS]
Definition SpellMgr.cpp:1938
uint32 SpellTypeMask
Definition SpellMgr.h:291

References _entry, spellTypeMask, and SpellProcEntry::SpellTypeMask.

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(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

Member Data Documentation

◆ _entry


The documentation for this class was generated from the following file: