![]() |
Project
|
#include <cassert>#include <vector>#include <cstring>#include <random>#include <algorithm>#include <boost/test/unit_test.hpp>#include <boost/mp11.hpp>#include <fmt/core.h>#include "rANS/internal/pack/pack.h"#include "rANS/internal/pack/eliasDelta.h"#include "rANS/internal/containers/BitPtr.h"Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_MODULE Utility test |
| #define | BOOST_TEST_MAIN |
| #define | BOOST_TEST_DYN_LINK |
Typedefs | |
| using | buffer_types = boost::mp11::mp_list< int8_t, int16_t, int32_t, int64_t > |
| using | source_types = boost::mp11::mp_list< uint8_t, uint16_t, uint32_t, uint64_t > |
Functions | |
| template<typename source_T > | |
| std::vector< source_T > | makeRandomUniformVector (size_t nelems, source_T min=std::numeric_limits< source_T >::min(), source_T max=std::numeric_limits< source_T >::max()) |
| BOOST_AUTO_TEST_CASE_TEMPLATE (test_computePackingBufferSize, buffer_T, buffer_types) | |
| BOOST_AUTO_TEST_CASE (test_packUnpack) | |
| BOOST_AUTO_TEST_CASE (test_packUnpackLong) | |
| BOOST_AUTO_TEST_CASE (test_packUnpackStream) | |
| BOOST_AUTO_TEST_CASE (test_packRUnpackEliasDelta) | |
Variables | |
| constexpr size_t | BufferSize = 257 |
| #define BOOST_TEST_DYN_LINK |
Definition at line 18 of file test_ransPack.cxx.
| #define BOOST_TEST_MAIN |
Definition at line 17 of file test_ransPack.cxx.
| #define BOOST_TEST_MODULE Utility test |
Definition at line 16 of file test_ransPack.cxx.
| using buffer_types = boost::mp11::mp_list<int8_t, int16_t, int32_t, int64_t> |
Definition at line 53 of file test_ransPack.cxx.
| using source_types = boost::mp11::mp_list<uint8_t, uint16_t, uint32_t, uint64_t> |
Definition at line 55 of file test_ransPack.cxx.
| BOOST_AUTO_TEST_CASE | ( | test_packRUnpackEliasDelta | ) |
Definition at line 144 of file test_ransPack.cxx.
| BOOST_AUTO_TEST_CASE | ( | test_packUnpack | ) |
Definition at line 67 of file test_ransPack.cxx.
| BOOST_AUTO_TEST_CASE | ( | test_packUnpackLong | ) |
Definition at line 95 of file test_ransPack.cxx.
| BOOST_AUTO_TEST_CASE | ( | test_packUnpackStream | ) |
Definition at line 123 of file test_ransPack.cxx.
| BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_computePackingBufferSize | , |
| buffer_T | , | ||
| buffer_types | |||
| ) |
Definition at line 57 of file test_ransPack.cxx.
| std::vector< source_T > makeRandomUniformVector | ( | size_t | nelems, |
| source_T | min = std::numeric_limits<source_T>::min(), |
||
| source_T | max = std::numeric_limits<source_T>::max() |
||
| ) |
Definition at line 44 of file test_ransPack.cxx.
|
inlineconstexpr |
Definition at line 40 of file test_ransPack.cxx.