![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Unit tests for proc internal cooldown system. More...
#include "ProcChanceTestHelper.h"#include "ProcEventInfoHelper.h"#include "AuraStub.h"#include "gtest/gtest.h"Go to the source code of this file.
Classes | |
| class | SpellProcCooldownTest |
Functions | |
| TEST_F (SpellProcCooldownTest, NotOnCooldown_Initially) | |
| TEST_F (SpellProcCooldownTest, OnCooldown_AfterProc) | |
| TEST_F (SpellProcCooldownTest, NotOnCooldown_AfterExpiry) | |
| TEST_F (SpellProcCooldownTest, ExactCooldownBoundary) | |
| TEST_F (SpellProcCooldownTest, ZeroCooldown_NeverBlocks) | |
| TEST_F (SpellProcCooldownTest, CooldownCanBeReset) | |
| TEST_F (SpellProcCooldownTest, CooldownCanBeExtended) | |
| TEST_F (SpellProcCooldownTest, Scenario_LeaderOfThePack_6SecCooldown) | |
| TEST_F (SpellProcCooldownTest, Scenario_WanderingPlague_1SecCooldown) | |
| TEST_F (SpellProcCooldownTest, Scenario_MultipleProcsWithCooldown) | |
| TEST_F (SpellProcCooldownTest, ProcTestScenario_CooldownBlocking) | |
Unit tests for proc internal cooldown system.
Definition in file SpellProcCooldownTest.cpp.
| TEST_F | ( | SpellProcCooldownTest | , |
| CooldownCanBeExtended | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| CooldownCanBeReset | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| ExactCooldownBoundary | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| NotOnCooldown_AfterExpiry | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| NotOnCooldown_Initially | |||
| ) |
References AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| OnCooldown_AfterProc | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| ProcTestScenario_CooldownBlocking | |||
| ) |
References ProcTestScenario::AdvanceTime(), SpellProcEntryBuilder::Build(), ProcTestScenario::SimulateProc(), ProcTestScenario::WithAura(), SpellProcEntryBuilder::WithChance(), and SpellProcEntryBuilder::WithCooldown().
| TEST_F | ( | SpellProcCooldownTest | , |
| Scenario_LeaderOfThePack_6SecCooldown | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| Scenario_MultipleProcsWithCooldown | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| Scenario_WanderingPlague_1SecCooldown | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().
| TEST_F | ( | SpellProcCooldownTest | , |
| ZeroCooldown_NeverBlocks | |||
| ) |
References ProcChanceTestHelper::ApplyProcCooldown(), AuraStubBuilder::Build(), ProcChanceTestHelper::IsProcOnCooldown(), and AuraStubBuilder::WithId().