| 1365 | |
| 1366 | template <bool FixedSize> |
| 1367 | void TestGetMaxCellSize(vtkSmartPointer<vtkCellArray> cellArray) |
| 1368 | { |
| 1369 | vtkLogScopeFunction(INFO); |
| 1370 | |
| 1371 | auto ids0 = GetCellIds<FixedSize>(0); |
| 1372 | auto ids1 = GetCellIds<FixedSize>(1); |
| 1373 | auto ids2 = GetCellIds<FixedSize>(2); |
| 1374 | |
| 1375 | TEST_ASSERT(cellArray->GetMaxCellSize() == 0); |
| 1376 | cellArray->InsertNextCell(ids0); |
| 1377 | TEST_ASSERT(cellArray->GetMaxCellSize() == ids0->GetNumberOfIds()); |
| 1378 | cellArray->InsertNextCell(ids1); |
| 1379 | TEST_ASSERT(cellArray->GetMaxCellSize() == ids0->GetNumberOfIds()); |
| 1380 | cellArray->InsertNextCell(ids2); |
| 1381 | TEST_ASSERT(cellArray->GetMaxCellSize() == ids2->GetNumberOfIds()); |
| 1382 | } |
| 1383 | |
| 1384 | template <bool FixedSize> |
| 1385 | void TestDeepCopy(vtkSmartPointer<vtkCellArray> cellArray) |
nothing calls this directly
no test coverage detected