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

Function TestArraySize

Common/Core/Testing/Cxx/TestArraySize.cxx:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 } while (false)
23
24int TestArraySize(int vtkNotUsed(argc), char* vtkNotUsed(argv)[])
25{
26 try
27 {
28 // Test to see that array sizes don't overflow ...
29 vtkSmartPointer<vtkSparseArray<double>> array = vtkSmartPointer<vtkSparseArray<double>>::New();
30 array->Resize(1200000, 18000);
31 test_expression(array->GetSize() == 21600000000ULL);
32
33 return 0;
34 }
35 catch (std::exception& e)
36 {
37 std::cerr << e.what() << std::endl;
38 return 1;
39 }
40}

Callers

nothing calls this directly

Calls 5

test_expressionFunction · 0.85
NewFunction · 0.70
ResizeMethod · 0.45
GetSizeMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected