KiCad PCB EDA Suite
|
#include <magic_enum.hpp>
#include <boost/test/unit_test.hpp>
#include <mmh3_hash.h>
#include <embedded_files.h>
#include <random>
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (CompressAndEncode_OK) | |
BOOST_AUTO_TEST_CASE (DecompressAndDecode_OK) | |
BOOST_AUTO_TEST_CASE (DecompressAndDecode_ChecksumError) | |
BOOST_AUTO_TEST_CASE | ( | CompressAndEncode_OK | ) |
Definition at line 30 of file test_embedded_file_compress.cpp.
References MMH3_HASH::add(), EMBEDDED_FILES::CompressAndEncode(), EMBEDDED_FILES::EMBEDDED_FILE::data_hash, EMBEDDED_FILES::EMBEDDED_FILE::decompressedData, MMH3_HASH::digest(), EMBEDDED_FILES::EMBEDDED_FILE::name, EMBEDDED_FILES::OK, EMBEDDED_FILES::Seed(), and HASH_128::ToString().
BOOST_AUTO_TEST_CASE | ( | DecompressAndDecode_ChecksumError | ) |
Definition at line 122 of file test_embedded_file_compress.cpp.
References EMBEDDED_FILES::CHECKSUM_ERROR, EMBEDDED_FILES::CompressAndEncode(), EMBEDDED_FILES::EMBEDDED_FILE::data_hash, EMBEDDED_FILES::DecompressAndDecode(), EMBEDDED_FILES::EMBEDDED_FILE::decompressedData, EMBEDDED_FILES::EMBEDDED_FILE::name, and EMBEDDED_FILES::OK.
BOOST_AUTO_TEST_CASE | ( | DecompressAndDecode_OK | ) |
Definition at line 45 of file test_embedded_file_compress.cpp.
References MMH3_HASH::add(), EMBEDDED_FILES::CompressAndEncode(), EMBEDDED_FILES::EMBEDDED_FILE::data_hash, EMBEDDED_FILES::DecompressAndDecode(), EMBEDDED_FILES::EMBEDDED_FILE::decompressedData, MMH3_HASH::digest(), EMBEDDED_FILES::EMBEDDED_FILE::name, EMBEDDED_FILES::OK, MMH3_HASH::reset(), rng, EMBEDDED_FILES::Seed(), and HASH_128::ToString().