MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / checkContinuousData

Function checkContinuousData

test/ContinuousBuffer.cpp:26–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template<typename T>
26bool checkContinuousData(render::ContinuousBuffer<T>& buffer, typename render::ContinuousBuffer<T>::Handle handle,
27 const std::initializer_list<std::vector<T>>& dataVectors)
28{
29 // Create a continuous buffer
30 std::vector<T> fullData;
31
32 for (const auto& data : dataVectors)
33 {
34 fullData.insert(fullData.end(), data.begin(), data.end());
35 }
36
37 auto result = checkData(buffer, handle, fullData);
38
39 EXPECT_TRUE(result) << "Data not continuously stored";
40
41 return result;
42}
43
44template<typename T>
45bool checkDataInBufferObject(render::ContinuousBuffer<T>& buffer, typename render::ContinuousBuffer<T>::Handle handle,

Callers 1

TESTFunction · 0.85

Calls 4

checkDataFunction · 0.85
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected