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

Function TestArrayFreeFunctions

Common/Core/Testing/Cxx/TestArrayFreeFunctions.cxx:187–205  ·  view source on GitHub ↗

-------------Test Entry Point-------------------------------------------------

Source from the content-addressed store, hash-verified

185
186//-------------Test Entry Point-------------------------------------------------
187int TestArrayFreeFunctions(int, char*[])
188{
189 int errors = 0;
190
191 errors += ExerciseDelete(UseFree{});
192 errors += ExerciseDelete(UseDelete{});
193 errors += ExerciseDelete(UseAlignedFree{});
194 errors += ExerciseDelete(UseLambda{});
195 if (timesLambdaFreeCalled != 5)
196 {
197 std::cerr << "Test failed! Lambda free not called " << std::endl;
198 }
199 if (errors > 0)
200 {
201 std::cerr << "Test failed! Error count: " << errors << std::endl;
202 }
203
204 return errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
205}

Callers

nothing calls this directly

Calls 1

ExerciseDeleteFunction · 0.85

Tested by

no test coverage detected