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

Function TestIsHomogeneous

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

Source from the content-addressed store, hash-verified

1106
1107template <bool FixedSize>
1108void TestIsHomogeneous(vtkSmartPointer<vtkCellArray> cellArray)
1109{
1110 vtkLogScopeFunction(INFO);
1111
1112 TEST_ASSERT(cellArray->IsHomogeneous() == 0);
1113 cellArray->Initialize();
1114 TEST_ASSERT(cellArray->IsHomogeneous() == 0);
1115
1116 FillCellArray<true>(cellArray);
1117 TEST_ASSERT(cellArray->IsHomogeneous() == 3);
1118
1119 FillCellArray<true>(cellArray);
1120 TEST_ASSERT(cellArray->IsHomogeneous() == 3);
1121
1122 if (!FixedSize)
1123 {
1124 cellArray->InsertNextCell({ 5, 6 });
1125 TEST_ASSERT(cellArray->IsHomogeneous() == -1);
1126 }
1127
1128 cellArray->Initialize();
1129 TEST_ASSERT(cellArray->IsHomogeneous() == 0);
1130}
1131
1132template <bool FixedSize>
1133void TestTraversalSizePointer(vtkSmartPointer<vtkCellArray> cellArray)

Callers

nothing calls this directly

Calls 3

IsHomogeneousMethod · 0.45
InitializeMethod · 0.45
InsertNextCellMethod · 0.45

Tested by

no test coverage detected