| 1383 | |
| 1384 | template <bool FixedSize> |
| 1385 | void 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 | |
| 1401 | template <bool FixedSize> |
| 1402 | void TestShallowCopy(vtkSmartPointer<vtkCellArray> cellArray) |
nothing calls this directly
no test coverage detected