-------------Test Entry Point-------------------------------------------------
| 185 | |
| 186 | //-------------Test Entry Point------------------------------------------------- |
| 187 | int 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 | } |
nothing calls this directly
no test coverage detected