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

Function TEST_METHOD

IntelPresentMon/UnitTests/FixedVectorTests.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 TEST_METHOD(CountConstructors)
94 {
95 pmon::util::cnr::FixedVector<ValueType, 4> vecDefault(3);
96 Assert::AreEqual<size_t>(3u, vecDefault.Size());
97 Assert::AreEqual(7, vecDefault[0].value);
98 Assert::AreEqual(7, vecDefault[1].value);
99 Assert::AreEqual(7, vecDefault[2].value);
100
101 pmon::util::cnr::FixedVector<ValueType, 4> vecFill(2, ValueType{ 9 });
102 Assert::AreEqual<size_t>(2u, vecFill.Size());
103 Assert::AreEqual(9, vecFill[0].value);
104 Assert::AreEqual(9, vecFill[1].value);
105 }
106
107 TEST_METHOD(InitializerListAndIteratorConstructors)
108 {

Callers

nothing calls this directly

Calls 15

AssignMethod · 0.80
EmplaceBackMethod · 0.80
BackMethod · 0.80
PopBackMethod · 0.80
FrontMethod · 0.80
DataMethod · 0.80
RBeginMethod · 0.80
REndMethod · 0.80
push_backMethod · 0.80
ReserveMethod · 0.80
ShrinkToFitMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected