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

Function TEST_METHOD

IntelPresentMon/UnitTests/ExtremeQueue.cpp:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 Assert::IsTrue(q.Empty());
25 }
26 TEST_METHOD(MaxAddToBack)
27 {
28 MaxQueue q;
29 q.Push(10.f);
30 q.Push(9.f);
31 q.Push(8.f);
32
33 Assert::AreEqual(10.f, *q.GetCurrent());
34 q.Pop(10.f);
35 Assert::AreEqual(9.f, *q.GetCurrent());
36 q.Pop(9.f);
37 Assert::AreEqual(8.f, *q.GetCurrent());
38 q.Pop(8.f);
39 Assert::IsTrue(q.Empty());
40 }
41 TEST_METHOD(MaxResetPushGreaterThanMax)
42 {
43 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