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

Function TEST_CLASS

IntelPresentMon/UnitTests/FixedVectorTests.cpp:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 };
77
78 TEST_CLASS(TestFixedVector)
79 {
80 public:
81 TEST_METHOD(DefaultState)
82 {
83 pmon::util::cnr::FixedVector<int, 4> vec;
84 Assert::IsTrue(vec.Empty());
85 Assert::AreEqual<size_t>(0u, vec.Size());
86 Assert::AreEqual<size_t>(4u, vec.Capacity());
87 Assert::AreEqual<size_t>(4u, vec.MaxSize());
88 Assert::IsTrue(vec.begin() == vec.end());
89 Assert::IsTrue(vec.CBegin() == vec.CEnd());
90 Assert::IsTrue(vec.Data() != nullptr);
91 }
92
93 TEST_METHOD(CountConstructors)
94 {

Callers

nothing calls this directly

Calls 9

CapacityMethod · 0.80
MaxSizeMethod · 0.80
CBeginMethod · 0.80
CEndMethod · 0.80
DataMethod · 0.80
EmptyMethod · 0.45
SizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected