Test for RangeForWrapper utilities. More...
#include "lardata/Utilities/RangeForWrapper.h"
#include <boost/test/unit_test.hpp>
#include <iterator>
#include <numeric>
#include <limits>
#include <type_traits>
#include <initializer_list>
Go to the source code of this file.
Classes | |
class | base_iterator< Value > |
struct | begin_iterator_t |
struct | end_iterator_t |
struct | begin_const_iterator_t |
struct | end_const_iterator_t |
struct | Data |
Macros | |
#define | BOOST_TEST_MODULE ( RangeForWrapper_test ) |
Functions | |
template<typename ValueL , typename ValueR > | |
bool | operator!= (base_iterator< ValueL > const &a, base_iterator< ValueR > const &b) |
template<typename T > | |
T | copy (T const &v) |
template<typename DataColl > | |
void | const_test (DataColl const &data, int expected_total) |
template<typename DataColl > | |
void | test (DataColl &data, int expected_total) |
template<typename Iter , typename RefIter > | |
void | iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | const_input_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | input_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | const_output_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | output_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | const_forward_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | forward_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | const_bidirectional_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | bidirectional_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | const_random_access_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<typename Iter , typename RefIter > | |
void | random_access_iterator_tests (Iter iter, RefIter refIter, RefIter refEnd) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t< IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::input_iterator_tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t<!IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::input_iterator_tag tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t< IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::output_iterator_tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t<!IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::output_iterator_tag tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t< IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::forward_iterator_tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t<!IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::forward_iterator_tag tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t< IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::bidirectional_iterator_tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t<!IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::bidirectional_iterator_tag tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t< IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::random_access_iterator_tag) |
template<bool IsConst, typename Iter , typename RefIter > | |
std::enable_if_t<!IsConst > | iterator_test_impl (Iter iter, RefIter refIter, RefIter refEnd, std::random_access_iterator_tag tag) |
template<typename Iter , typename RefIter > | |
void | iterator_test (Iter iter, RefIter refIter, RefIter refEnd) |
template<bool IsConst> | |
void | RangeForWrapperIteratorStandardsTest () |
BOOST_AUTO_TEST_CASE (RangeForWrapperSameIterator_test) | |
BOOST_AUTO_TEST_CASE (RangeForWrapperDifferentIterator_test) | |
BOOST_AUTO_TEST_CASE (RangeForWrapperIteratorStandardsTestCase) | |
Test for RangeForWrapper utilities.
The test is run with no arguments.
Definition in file RangeForWrapper_test.cc.
#define BOOST_TEST_MODULE ( RangeForWrapper_test ) |
Definition at line 16 of file RangeForWrapper_test.cc.
using const_wrapper_type = util::details::RangeForWrapperIterator<begin_const_iterator_t, end_const_iterator_t> |
Definition at line 69 of file RangeForWrapper_test.cc.
Definition at line 68 of file RangeForWrapper_test.cc.
void bidirectional_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 423 of file RangeForWrapper_test.cc.
BOOST_AUTO_TEST_CASE | ( | RangeForWrapperSameIterator_test | ) |
Definition at line 618 of file RangeForWrapper_test.cc.
BOOST_AUTO_TEST_CASE | ( | RangeForWrapperDifferentIterator_test | ) |
Definition at line 651 of file RangeForWrapper_test.cc.
BOOST_AUTO_TEST_CASE | ( | RangeForWrapperIteratorStandardsTestCase | ) |
Definition at line 676 of file RangeForWrapper_test.cc.
void const_bidirectional_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 395 of file RangeForWrapper_test.cc.
void const_forward_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 345 of file RangeForWrapper_test.cc.
void const_input_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 223 of file RangeForWrapper_test.cc.
void const_output_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 270 of file RangeForWrapper_test.cc.
void const_random_access_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 431 of file RangeForWrapper_test.cc.
void const_test | ( | DataColl const & | data, |
int | expected_total | ||
) |
Definition at line 104 of file RangeForWrapper_test.cc.
T copy | ( | T const & | v | ) |
Definition at line 98 of file RangeForWrapper_test.cc.
void forward_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 387 of file RangeForWrapper_test.cc.
void input_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 262 of file RangeForWrapper_test.cc.
void iterator_test | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 539 of file RangeForWrapper_test.cc.
std::enable_if_t<IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::input_iterator_tag | |||
) |
Definition at line 448 of file RangeForWrapper_test.cc.
std::enable_if_t<!IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::input_iterator_tag | tag | ||
) |
Definition at line 457 of file RangeForWrapper_test.cc.
std::enable_if_t<IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::output_iterator_tag | |||
) |
Definition at line 466 of file RangeForWrapper_test.cc.
std::enable_if_t<!IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::output_iterator_tag | tag | ||
) |
Definition at line 475 of file RangeForWrapper_test.cc.
std::enable_if_t<IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::forward_iterator_tag | |||
) |
Definition at line 484 of file RangeForWrapper_test.cc.
std::enable_if_t<!IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::forward_iterator_tag | tag | ||
) |
Definition at line 494 of file RangeForWrapper_test.cc.
std::enable_if_t<IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::bidirectional_iterator_tag | |||
) |
Definition at line 504 of file RangeForWrapper_test.cc.
std::enable_if_t<!IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::bidirectional_iterator_tag | tag | ||
) |
Definition at line 513 of file RangeForWrapper_test.cc.
std::enable_if_t<IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::random_access_iterator_tag | |||
) |
Definition at line 522 of file RangeForWrapper_test.cc.
std::enable_if_t<!IsConst> iterator_test_impl | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd, | ||
std::random_access_iterator_tag | tag | ||
) |
Definition at line 531 of file RangeForWrapper_test.cc.
void iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 182 of file RangeForWrapper_test.cc.
bool operator!= | ( | base_iterator< ValueL > const & | a, |
base_iterator< ValueR > const & | b | ||
) |
Definition at line 59 of file RangeForWrapper_test.cc.
void output_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 308 of file RangeForWrapper_test.cc.
void random_access_iterator_tests | ( | Iter | iter, |
RefIter | refIter, | ||
RefIter | refEnd | ||
) |
Definition at line 437 of file RangeForWrapper_test.cc.
void RangeForWrapperIteratorStandardsTest | ( | ) |
Definition at line 554 of file RangeForWrapper_test.cc.
void test | ( | DataColl & | data, |
int | expected_total | ||
) |
Definition at line 127 of file RangeForWrapper_test.cc.