20#include <magic_enum.hpp>
21#include <boost/test/unit_test.hpp>
26using magic_enum::iostream_operators::operator<<;
33 file.
name =
"test_file";
34 std::string data =
"Hello, World!";
48 file.
name =
"test_file";
49 std::string data =
"Hello, World!";
64 data.reserve( 13 * 100000 + 1 );
66 for(
int i = 0; i < 100000; ++i )
67 data +=
"Hello, World!";
83 data.reserve( 100000 );
85 for(
int i = 0; i < 100000; ++i )
86 data +=
static_cast<char>( i % 256 );
101 data.reserve( 100000 );
106 for(
int i = 0; i < 100000; ++i )
107 data +=
static_cast<char>(
rng() % 256 );
125 file.
name =
"test_file";
126 std::string data =
"Hello, World!";
static RETURN_CODE DecompressAndDecode(EMBEDDED_FILE &aFile)
Takes data from the #compressedEncodedData buffer and Base64 decodes it.
static RETURN_CODE CompressAndEncode(EMBEDDED_FILE &aFile)
Takes data from the #decompressedData buffer and compresses it using ZSTD into the #compressedEncoded...
A streaming C++ equivalent for MurmurHash3_x64_128.
FORCE_INLINE void add(const std::string &input)
FORCE_INLINE HASH_128 digest()
FORCE_INLINE void reset(uint32_t aSeed=0)
static boost::mt19937 rng
std::vector< char > decompressedData
std::string ToString() const
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(CompressAndEncode_OK)
BOOST_AUTO_TEST_SUITE_END()