![]() |
Project
|
test class that allows to build histogram of symbols from a source message More...
#include <cassert>
#include <boost/test/unit_test.hpp>
#include <boost/mp11.hpp>
#include <gsl/span>
#include <fmt/format.h>
#include "rANS/histogram.h"
#include "rANS/internal/transform/algorithm.h"
#include "rANS/internal/common/typetraits.h"
#include "rANS/compat.h"
Go to the source code of this file.
Classes | |
struct | boost::test_tools::tt_detail::print_log_value<::std::pair< F, S > > |
Namespaces | |
namespace | boost |
namespace | boost::test_tools |
namespace | boost::test_tools::tt_detail |
Macros | |
#define | BOOST_TEST_MODULE Utility test |
#define | BOOST_TEST_MAIN |
#define | BOOST_TEST_DYN_LINK |
Functions | |
template<typename histogram_T > | |
void | checkEquivalent (const histogram_T &a, const histogram_T &b) |
template<class histogram_T , typename map_T > | |
size_t | getTableSize (const map_T &resultsMap) |
template<class histogram_T , typename map_T > | |
auto | getOffset (const map_T &resultsMap) -> typename map_T::key_type |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_emptyTablesSmall, histogram_T, small_dense_histogram_types) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_emptyTablesLarge, histogram_T, variable_histograms_types) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_addSamples, histogram_T, histogram_types) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_addFrequencies, histogram_T, histogram_types) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_addFrequenciesSignChange, histogram_T, histogram_types) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_renorm, histogram_T, renorm_types) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_renormLegacy, histogram_T, legacy_renorm_types) | |
BOOST_AUTO_TEST_CASE (test_ExpectedCodewordLength) | |
test class that allows to build histogram of symbols from a source message
Definition in file test_ransHistograms.cxx.
#define BOOST_TEST_DYN_LINK |
Definition at line 18 of file test_ransHistograms.cxx.
#define BOOST_TEST_MAIN |
Definition at line 17 of file test_ransHistograms.cxx.
#define BOOST_TEST_MODULE Utility test |
Definition at line 16 of file test_ransHistograms.cxx.
using adaptive_histogram_types = mp::mp_list<AdaptiveHistogram<uint32_t>, AdaptiveHistogram<int32_t> > |
Definition at line 46 of file test_ransHistograms.cxx.
using histogram_types = mp::mp_flatten<mp::mp_list<small_dense_histogram_types, large_dense_histogram_types, adaptive_histogram_types, sparse_histograms> > |
Definition at line 73 of file test_ransHistograms.cxx.
using large_dense_histogram_types = mp::mp_list<DenseHistogram<int32_t> > |
Definition at line 44 of file test_ransHistograms.cxx.
using legacy_renorm_types = mp::mp_list<DenseHistogram<uint8_t>, DenseHistogram<uint32_t> > |
Definition at line 460 of file test_ransHistograms.cxx.
using renorm_types = mp::mp_list<DenseHistogram<uint8_t>, DenseHistogram<uint32_t>, AdaptiveHistogram<int32_t>, SparseHistogram<int32_t> > |
Definition at line 438 of file test_ransHistograms.cxx.
using small_dense_histogram_types = mp::mp_list< DenseHistogram<char>, DenseHistogram<uint8_t>, DenseHistogram<int8_t>, DenseHistogram<uint16_t>, DenseHistogram<int16_t> > |
Definition at line 37 of file test_ransHistograms.cxx.
using sparse_histograms = mp::mp_list<SparseHistogram<uint32_t>, SparseHistogram<int32_t> > |
Definition at line 49 of file test_ransHistograms.cxx.
using variable_histograms_types = mp::mp_flatten<mp::mp_list<large_dense_histogram_types, adaptive_histogram_types, sparse_histograms> > |
Definition at line 75 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE | ( | test_ExpectedCodewordLength | ) |
Definition at line 477 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_addFrequencies | , |
histogram_T | , | ||
histogram_types | |||
) |
Definition at line 272 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_addFrequenciesSignChange | , |
histogram_T | , | ||
histogram_types | |||
) |
Definition at line 348 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_addSamples | , |
histogram_T | , | ||
histogram_types | |||
) |
Definition at line 166 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_emptyTablesLarge | , |
histogram_T | , | ||
variable_histograms_types | |||
) |
Definition at line 154 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_emptyTablesSmall | , |
histogram_T | , | ||
small_dense_histogram_types | |||
) |
Definition at line 142 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_renorm | , |
histogram_T | , | ||
renorm_types | |||
) |
Definition at line 440 of file test_ransHistograms.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_renormLegacy | , |
histogram_T | , | ||
legacy_renorm_types | |||
) |
Definition at line 462 of file test_ransHistograms.cxx.
void checkEquivalent | ( | const histogram_T & | a, |
const histogram_T & | b | ||
) |
Definition at line 78 of file test_ransHistograms.cxx.
auto getOffset | ( | const map_T & | resultsMap | ) | -> typename map_T::key_type |
Definition at line 114 of file test_ransHistograms.cxx.
size_t getTableSize | ( | const map_T & | resultsMap | ) |
Definition at line 88 of file test_ransHistograms.cxx.