Project
Loading...
Searching...
No Matches
test_ransSerialize.cxx File Reference
#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/serialize.h"
#include "rANS/histogram.h"
#include "rANS/factory.h"
#include "rANS/metrics.h"
#include "rANS/internal/containers/Symbol.h"

Go to the source code of this file.

Classes

class  SourceMessage< source_T >
 
class  SourceMessageProxy< source_T >
 

Macros

#define BOOST_TEST_MODULE   Utility test
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Typedefs

using buffer_types = boost::mp11::mp_list< uint8_t, uint16_t, uint32_t, uint64_t >
 
using source_types = boost::mp11::mp_list< uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t >
 
using test_types = boost::mp11::mp_product< boost::mp11::mp_list, source_types, buffer_types >
 
using adaptiveSource_types = boost::mp11::mp_list< uint32_t, int32_t >
 
using adaptiveTest_types = boost::mp11::mp_product< boost::mp11::mp_list, source_types, buffer_types >
 
using sparseTest_types = adaptiveTest_types
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeEmptyHistogram, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeEmptySymbolTable, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeHistogram, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeSymbolTable, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeAdaptiveHistogram, T, adaptiveTest_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeAdaptiveSymbolTable, T, adaptiveTest_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeSparseHistogram, T, sparseTest_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testSerializeDeserializeSparseSymbolTable, T, sparseTest_types)
 

Variables

const SourceMessageProxy MessageProxy {}
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 18 of file test_ransSerialize.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 17 of file test_ransSerialize.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Utility test

Definition at line 16 of file test_ransSerialize.cxx.

Typedef Documentation

◆ adaptiveSource_types

using adaptiveSource_types = boost::mp11::mp_list<uint32_t, int32_t>

Definition at line 241 of file test_ransSerialize.cxx.

◆ adaptiveTest_types

using adaptiveTest_types = boost::mp11::mp_product<boost::mp11::mp_list, source_types, buffer_types>

Definition at line 243 of file test_ransSerialize.cxx.

◆ buffer_types

using buffer_types = boost::mp11::mp_list<uint8_t, uint16_t, uint32_t, uint64_t>

Definition at line 40 of file test_ransSerialize.cxx.

◆ source_types

using source_types = boost::mp11::mp_list<uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t>

Definition at line 41 of file test_ransSerialize.cxx.

◆ sparseTest_types

Definition at line 316 of file test_ransSerialize.cxx.

◆ test_types

using test_types = boost::mp11::mp_product<boost::mp11::mp_list, source_types, buffer_types>

Definition at line 43 of file test_ransSerialize.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeAdaptiveHistogram  ,
,
adaptiveTest_types   
)

Definition at line 245 of file test_ransSerialize.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeAdaptiveSymbolTable  ,
,
adaptiveTest_types   
)

Definition at line 280 of file test_ransSerialize.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeEmptyHistogram  ,
,
test_types   
)

Definition at line 45 of file test_ransSerialize.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeEmptySymbolTable  ,
,
test_types   
)

Definition at line 77 of file test_ransSerialize.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeHistogram  ,
,
test_types   
)

Definition at line 173 of file test_ransSerialize.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeSparseHistogram  ,
,
sparseTest_types   
)

Definition at line 318 of file test_ransSerialize.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeSparseSymbolTable  ,
,
sparseTest_types   
)

Definition at line 353 of file test_ransSerialize.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testSerializeDeserializeSymbolTable  ,
,
test_types   
)

Definition at line 207 of file test_ransSerialize.cxx.

Variable Documentation

◆ MessageProxy

const SourceMessageProxy MessageProxy {}
inline

Definition at line 171 of file test_ransSerialize.cxx.