MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / TEST_CLASS

Function TEST_CLASS

IntelPresentMon/UnitTests/ExtremeQueue.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 using namespace p2c::gfx::lay;
14
15 TEST_CLASS(TestExtremeQueue)
16 {
17 public:
18 TEST_METHOD(MaxAddEmpty)
19 {
20 MaxQueue q;
21 q.Push(10.f);
22 Assert::AreEqual(10.f, *q.GetCurrent());
23 q.Pop(10.f);
24 Assert::IsTrue(q.Empty());
25 }
26 TEST_METHOD(MaxAddToBack)
27 {
28 MaxQueue q;

Callers

nothing calls this directly

Calls 4

GetCurrentMethod · 0.80
PushMethod · 0.45
PopMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected