| 1400 | |
| 1401 | template <bool FixedSize> |
| 1402 | void TestShallowCopy(vtkSmartPointer<vtkCellArray> cellArray) |
| 1403 | { |
| 1404 | vtkLogScopeFunction(INFO); |
| 1405 | |
| 1406 | FillCellArray<FixedSize>(cellArray); |
| 1407 | |
| 1408 | vtkNew<vtkCellArray> other; |
| 1409 | other->ShallowCopy(cellArray); |
| 1410 | |
| 1411 | TEST_ASSERT(cellArray->GetStorageType() == other->GetStorageType()); |
| 1412 | ValidateCellArray<FixedSize>(other); |
| 1413 | |
| 1414 | cellArray->InsertNextCell({ 0, 1, 2 }); |
| 1415 | TEST_ASSERT(cellArray->GetNumberOfCells() == other->GetNumberOfCells()); |
| 1416 | TEST_ASSERT(cellArray->GetOffsetsArray() == other->GetOffsetsArray()); |
| 1417 | TEST_ASSERT(cellArray->GetConnectivityArray() == other->GetConnectivityArray()); |
| 1418 | } |
| 1419 | |
| 1420 | template <bool FixedSize> |
| 1421 | void TestAppendImpl(vtkSmartPointer<vtkCellArray> first, vtkSmartPointer<vtkCellArray> second) |
nothing calls this directly
no test coverage detected