Tests the bulk allocator. More...
#include <map>
#include <random>
#include "boost/test/unit_test.hpp"
#include "lardata/Utilities/BulkAllocator.h"
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE ( BulkAllocator_test ) |
Functions | |
void | RunHoughTransformTreeTest () |
Tests bulk allocator with a vector of maps (Hough transfort use case) More... | |
BOOST_AUTO_TEST_CASE (RunHoughTransformTree) | |
Variables | |
constexpr unsigned int | RandomSeed = 12345 |
The seed for the default random engine. More... | |
Tests the bulk allocator.
See http://www.boost.org/libs/test for the Boost test library home page.
Timing: version 1.0 takes less than 3" on a 3 GHz machine FIXME
Definition in file BulkAllocator_test.cc.
#define BOOST_TEST_MODULE ( BulkAllocator_test ) |
Definition at line 28 of file BulkAllocator_test.cc.
BOOST_AUTO_TEST_CASE | ( | RunHoughTransformTree | ) |
Definition at line 139 of file BulkAllocator_test.cc.
void RunHoughTransformTreeTest | ( | ) |
Tests bulk allocator with a vector of maps (Hough transfort use case)
The test consists in filling a lot of points into a 2D sparse "image" (or histogram). Two structures are maintained, one with the standard STL allocator, another with the BulkAllocator. The test fails if the two images do not match.
Definition at line 52 of file BulkAllocator_test.cc.
constexpr unsigned int RandomSeed = 12345 |
The seed for the default random engine.
Definition at line 36 of file BulkAllocator_test.cc.