test_allocator 0.0.5

A test allocator


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Test Allocator

std.experimental.allocator / std.allocator gives D the tools to allocate memory as needed by the application without having to depend on the D's mark-and-sweep garbage collector. But... how do you know if your code is actually doing what you expect it to? Enter the test allocator in this dub package. Essentially it tracks all allocations made through it and throws in the destructor if there are any leaks.

It also verifies that the client code is trying to free memory that was actually allocated via the allocator.

It's backed by mallocator for even better tracking: that way valgrind and address sanitizer will possibly catch bugs the code in here doesn't.

Authors:
Atila Neves
Dependencies:
none
Versions:
0.0.5 2017-Apr-20
0.0.4 2017-Apr-20
0.0.3 2017-Apr-20
0.0.2 2017-Apr-06
0.0.1 2016-Dec-16
Show all 6 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 14 downloads this month

  • 128 downloads total