MCPcopy Create free account
hub / github.com/Kitware/VTK / TestResize

Function TestResize

Common/DataModel/Testing/Cxx/TestCellArrayHelpers.h:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278void TestResize(vtkSmartPointer<vtkCellArray> cellArray)
279{
280 vtkLogScopeFunction(INFO);
281
282 cellArray->Initialize();
283 cellArray->ResizeExact(128, 256);
284 TEST_ASSERT(cellArray->GetOffsetsArray()->GetNumberOfValues() == 129);
285 TEST_ASSERT(cellArray->GetConnectivityArray()->GetNumberOfValues() == 256);
286}
287
288void TestInitialize(vtkSmartPointer<vtkCellArray> cellArray)
289{

Callers 1

RunTestsFunction · 0.85

Calls 4

ResizeExactMethod · 0.80
GetConnectivityArrayMethod · 0.80
InitializeMethod · 0.45
GetNumberOfValuesMethod · 0.45

Tested by

no test coverage detected