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

Function TestDeepCopy

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

Source from the content-addressed store, hash-verified

1383
1384template <bool FixedSize>
1385void TestDeepCopy(vtkSmartPointer<vtkCellArray> cellArray)
1386{
1387 vtkLogScopeFunction(INFO);
1388
1389 FillCellArray<FixedSize>(cellArray);
1390
1391 vtkNew<vtkCellArray> other;
1392 other->DeepCopy(cellArray);
1393
1394 TEST_ASSERT(cellArray->GetStorageType() == other->GetStorageType());
1395 ValidateCellArray<FixedSize>(other);
1396
1397 cellArray->InsertNextCell({ 0, 1, 2 });
1398 TEST_ASSERT(cellArray->GetNumberOfCells() == other->GetNumberOfCells() + 1);
1399}
1400
1401template <bool FixedSize>
1402void TestShallowCopy(vtkSmartPointer<vtkCellArray> cellArray)

Callers

nothing calls this directly

Calls 3

DeepCopyMethod · 0.45
InsertNextCellMethod · 0.45
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected