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

Function TestGetMaxCellSize

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

Source from the content-addressed store, hash-verified

1365
1366template <bool FixedSize>
1367void 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
1384template <bool FixedSize>
1385void TestDeepCopy(vtkSmartPointer<vtkCellArray> cellArray)

Callers

nothing calls this directly

Calls 3

GetMaxCellSizeMethod · 0.45
InsertNextCellMethod · 0.45
GetNumberOfIdsMethod · 0.45

Tested by

no test coverage detected