![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "AuraScriptTestFramework.h"#include "SpellMgr.h"#include "gtest/gtest.h"#include "gmock/gmock.h"Go to the source code of this file.
Classes | |
| class | SpellProcIntegrationTest |
| Integration tests for the proc system. More... | |
| TEST_F | ( | SpellProcIntegrationTest | , |
| AbsorbProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnTakenSpellDamage(), PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_NEG, PROC_HIT_ABSORB, ProcScenarioBuilder::WithAbsorb(), SpellProcEntryBuilder::WithHitMask(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| AllHitMasks_TriggersOnAny | |||
| ) |
References ProcEventInfoBuilder::Build(), SpellProcEntryBuilder::Build(), PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_HIT_BLOCK, PROC_HIT_CRITICAL, PROC_HIT_DODGE, PROC_HIT_MASK_ALL, PROC_HIT_MISS, PROC_HIT_NORMAL, PROC_HIT_PARRY, sSpellMgr, ProcEventInfoBuilder::WithHitMask(), SpellProcEntryBuilder::WithHitMask(), SpellProcEntryBuilder::WithProcFlags(), and ProcEventInfoBuilder::WithTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| BlockProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnTakenMeleeAutoAttack(), PROC_FLAG_TAKEN_MELEE_AUTO_ATTACK, PROC_HIT_BLOCK, ProcScenarioBuilder::WithBlock(), SpellProcEntryBuilder::WithHitMask(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| DeathProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnDeath(), PROC_FLAG_DEATH, and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| DodgeProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnTakenMeleeAutoAttack(), PROC_FLAG_TAKEN_MELEE_AUTO_ATTACK, PROC_HIT_DODGE, ProcScenarioBuilder::WithDodge(), SpellProcEntryBuilder::WithHitMask(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| EmptyProcFlags_NeverTriggers | |||
| ) |
References ProcScenarioBuilder::Build(), SpellProcEntryBuilder::Build(), ProcScenarioBuilder::OnMeleeAutoAttack(), PROC_FLAG_NONE, sSpellMgr, ProcScenarioBuilder::WithNormalHit(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| FullBlockProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnTakenMeleeAutoAttack(), PROC_FLAG_TAKEN_MELEE_AUTO_ATTACK, PROC_HIT_FULL_BLOCK, ProcScenarioBuilder::WithFullBlock(), SpellProcEntryBuilder::WithHitMask(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| HealProc_CritHeal | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_DOES_NOT_TRIGGER, EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnHeal(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, PROC_HIT_CRITICAL, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_HEAL, ProcScenarioBuilder::WithCrit(), SpellProcEntryBuilder::WithHitMask(), ProcScenarioBuilder::WithNormalHit(), SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSpellPhaseMask(), and SpellProcEntryBuilder::WithSpellTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| HealProc_OnHeal | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnHeal(), ProcScenarioBuilder::OnHit(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_HEAL, SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSpellPhaseMask(), and SpellProcEntryBuilder::WithSpellTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| KillProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnKill(), PROC_FLAG_KILL, and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| MeleeAutoAttackProc_CritOnly | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_DOES_NOT_TRIGGER, EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnMeleeAutoAttack(), PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_HIT_CRITICAL, ProcScenarioBuilder::WithCrit(), SpellProcEntryBuilder::WithHitMask(), ProcScenarioBuilder::WithNormalHit(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| MeleeAutoAttackProc_Miss | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnMeleeAutoAttack(), PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_HIT_MISS, SpellProcEntryBuilder::WithHitMask(), ProcScenarioBuilder::WithMiss(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| MeleeAutoAttackProc_NormalHit | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnMeleeAutoAttack(), PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_HIT_CRITICAL, PROC_HIT_NORMAL, SpellProcEntryBuilder::WithHitMask(), ProcScenarioBuilder::WithNormalHit(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| MultipleHitMasks_CritOrNormal | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_DOES_NOT_TRIGGER, EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnMeleeAutoAttack(), PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_HIT_CRITICAL, PROC_HIT_NORMAL, ProcScenarioBuilder::WithCrit(), SpellProcEntryBuilder::WithHitMask(), ProcScenarioBuilder::WithMiss(), ProcScenarioBuilder::WithNormalHit(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| MultipleProcFlags_MeleeOrSpell | |||
| ) |
References ProcEventInfoBuilder::Build(), SpellProcEntryBuilder::Build(), PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_HIT_NORMAL, PROC_SPELL_PHASE_HIT, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_FIRE, sSpellMgr, ProcEventInfoBuilder::WithDamageInfo(), ProcEventInfoBuilder::WithHitMask(), SpellProcEntryBuilder::WithProcFlags(), ProcEventInfoBuilder::WithSpellPhaseMask(), SpellProcEntryBuilder::WithSpellPhaseMask(), and ProcEventInfoBuilder::WithTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| ParryProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnTakenMeleeAutoAttack(), PROC_FLAG_TAKEN_MELEE_AUTO_ATTACK, PROC_HIT_PARRY, SpellProcEntryBuilder::WithHitMask(), ProcScenarioBuilder::WithParry(), and SpellProcEntryBuilder::WithProcFlags().
| TEST_F | ( | SpellProcIntegrationTest | , |
| PeriodicDamageProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnPeriodicDamage(), PROC_FLAG_DONE_PERIODIC, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, ProcScenarioBuilder::WithNormalHit(), SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSpellPhaseMask(), and SpellProcEntryBuilder::WithSpellTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| PeriodicHealProc | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnPeriodicHeal(), PROC_FLAG_DONE_PERIODIC, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_HEAL, ProcScenarioBuilder::WithNormalHit(), SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSpellPhaseMask(), and SpellProcEntryBuilder::WithSpellTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SchoolMaskFilter_FireOnly_FireDamage | |||
| ) |
References ProcEventInfoBuilder::Build(), SpellProcEntryBuilder::Build(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_HIT_NORMAL, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_FIRE, sSpellMgr, ProcEventInfoBuilder::WithDamageInfo(), ProcEventInfoBuilder::WithHitMask(), SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSchoolMask(), ProcEventInfoBuilder::WithSpellPhaseMask(), SpellProcEntryBuilder::WithSpellPhaseMask(), ProcEventInfoBuilder::WithSpellTypeMask(), and ProcEventInfoBuilder::WithTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SchoolMaskFilter_FireOnly_FrostDamage | |||
| ) |
References ProcEventInfoBuilder::Build(), SpellProcEntryBuilder::Build(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_HIT_NORMAL, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_FROST, sSpellMgr, ProcEventInfoBuilder::WithDamageInfo(), ProcEventInfoBuilder::WithHitMask(), SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSchoolMask(), ProcEventInfoBuilder::WithSpellPhaseMask(), SpellProcEntryBuilder::WithSpellPhaseMask(), ProcEventInfoBuilder::WithSpellTypeMask(), and ProcEventInfoBuilder::WithTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SchoolMaskFilter_NoSchoolMask_AnySchoolTriggers | |||
| ) |
References ProcEventInfoBuilder::Build(), SpellProcEntryBuilder::Build(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_HIT_NORMAL, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_SHADOW, sSpellMgr, ProcEventInfoBuilder::WithDamageInfo(), ProcEventInfoBuilder::WithHitMask(), SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSchoolMask(), ProcEventInfoBuilder::WithSpellPhaseMask(), SpellProcEntryBuilder::WithSpellPhaseMask(), ProcEventInfoBuilder::WithSpellTypeMask(), and ProcEventInfoBuilder::WithTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SpellDamageProc_OnCast | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_DOES_NOT_TRIGGER, EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnCast(), ProcScenarioBuilder::OnHit(), ProcScenarioBuilder::OnSpellDamage(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_SPELL_PHASE_CAST, SpellProcEntryBuilder::WithProcFlags(), and SpellProcEntryBuilder::WithSpellPhaseMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SpellDamageProc_OnHit | |||
| ) |
References SpellProcEntryBuilder::Build(), EXPECT_PROC_TRIGGERS, ProcScenarioBuilder::OnHit(), ProcScenarioBuilder::OnSpellDamage(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, ProcScenarioBuilder::WithNormalHit(), SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSpellPhaseMask(), and SpellProcEntryBuilder::WithSpellTypeMask().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SpellFamilyMatch_DifferentFamily | |||
| ) |
References SpellProcEntryBuilder::Build(), SpellProcEntryBuilder::WithSpellFamilyMask(), and SpellProcEntryBuilder::WithSpellFamilyName().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SpellFamilyMatch_FlagMismatch | |||
| ) |
References SpellProcEntryBuilder::Build(), SpellProcEntryBuilder::WithSpellFamilyMask(), and SpellProcEntryBuilder::WithSpellFamilyName().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SpellFamilyMatch_NoFamilyFilter | |||
| ) |
References SpellProcEntryBuilder::Build(), and SpellProcEntryBuilder::WithSpellFamilyName().
| TEST_F | ( | SpellProcIntegrationTest | , |
| SpellFamilyMatch_SameFamily | |||
| ) |
References SpellProcEntryBuilder::Build(), PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, SpellProcEntryBuilder::WithProcFlags(), SpellProcEntryBuilder::WithSpellFamilyMask(), and SpellProcEntryBuilder::WithSpellFamilyName().