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

Function TestUse64BitStorage

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

Source from the content-addressed store, hash-verified

776}
777
778void TestUse64BitStorage(vtkSmartPointer<vtkCellArray> cellArray)
779{
780 vtkLogScopeFunction(INFO);
781
782 // Add some data to make sure that switching storage re-initializes data:
783 FillCellArray<true>(cellArray);
784 cellArray->Use64BitStorage();
785
786 TEST_ASSERT(cellArray->IsStorage64Bit());
787 TEST_ASSERT(cellArray->GetNumberOfOffsets() == 1);
788 TEST_ASSERT(cellArray->GetNumberOfConnectivityIds() == 0);
789}
790
791void TestUseDefaultStorage(vtkSmartPointer<vtkCellArray> cellArray)
792{

Callers 1

RunTestsFunction · 0.85

Calls 3

Use64BitStorageMethod · 0.80
GetNumberOfOffsetsMethod · 0.80

Tested by

no test coverage detected