| 128 | } |
| 129 | |
| 130 | SimpleString CodeMemoryReportFormatter::getDeallocationString(TestMemoryAllocator* allocator, const SimpleString& variableName, const char* file, size_t line) |
| 131 | { |
| 132 | if (isNewAllocator(allocator)) |
| 133 | return StringFromFormat("delete [] %s; /* using %s at %s:%d */", variableName.asCharString(), allocator->free_name(), file, (int) line); |
| 134 | else |
| 135 | return StringFromFormat("free(%s); /* at %s:%d */", variableName.asCharString(), file, (int) line); |
| 136 | } |
| 137 | |
| 138 | void CodeMemoryReportFormatter::report_test_start(TestResult* result, UtestShell& test) |
| 139 | { |
nothing calls this directly
no test coverage detected