Tests nested iterators. More...
#include <map>#include <random>#include <iostream>#include "boost/test/unit_test.hpp"#include "lardata/Utilities/NestedIterator.h"Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_MODULE ( NestedIterator_test ) |
Functions | |
| void | RunVectorVectorTest () |
| Tests bulk allocator with a vector of vectors. More... | |
| void | RunVectorMapTest () |
| Tests bulk allocator with a map of vectors. More... | |
| BOOST_AUTO_TEST_CASE (RunVectorVector) | |
| BOOST_AUTO_TEST_CASE (RunVectorMap) | |
Variables | |
| constexpr unsigned int | RandomSeed = 12345 |
| The seed for the default random engine. More... | |
Tests nested iterators.
See http://www.boost.org/libs/test for the Boost test library home page.
Timing: version 1.0 takes negligible time on a 3 GHz machine
Definition in file NestedIterator_test.cc.
| #define BOOST_TEST_MODULE ( NestedIterator_test ) |
Definition at line 29 of file NestedIterator_test.cc.
| BOOST_AUTO_TEST_CASE | ( | RunVectorVector | ) |
Definition at line 156 of file NestedIterator_test.cc.
| BOOST_AUTO_TEST_CASE | ( | RunVectorMap | ) |
Definition at line 160 of file NestedIterator_test.cc.
| void RunVectorMapTest | ( | ) |
Tests bulk allocator with a map of vectors.
The test consists in filling a sequence of integers in a two-level structure, and then iterating to recover the sequence.
The test fails if the extracted sequence is not correct.
Definition at line 102 of file NestedIterator_test.cc.
| void RunVectorVectorTest | ( | ) |
Tests bulk allocator with a vector of vectors.
The test consists in filling a sequence of integers in a two-level structure, and then iterating to recover the sequence.
The test fails if the extracted sequence is not correct.
Definition at line 52 of file NestedIterator_test.cc.
| constexpr unsigned int RandomSeed = 12345 |
The seed for the default random engine.
Definition at line 37 of file NestedIterator_test.cc.
1.8.11