KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_embedded_file_compress.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <random>
#include <wx/wfstream.h>
#include <qa_utils/file_utils.h>
#include <magic_enum.hpp>
#include <magic_enum_iostream.hpp>
#include <mmh3_hash.h>
#include <embedded_files.h>

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 (ComputeFileHash_MatchesEmbeddedHash)
 
 BOOST_AUTO_TEST_CASE (ComputeFileHash_DifferentContent)
 
 BOOST_AUTO_TEST_CASE (ComputeFileHash_NonExistentFile)
 
 BOOST_AUTO_TEST_CASE (DecompressAndDecode_V1HashFallback)
 
 BOOST_AUTO_TEST_CASE (CopySharesEmbeddedFilePayloads)
 
 BOOST_AUTO_TEST_CASE (DeepCopyAllocatesIndependentPayloads)
 
 BOOST_AUTO_TEST_CASE (AssignSharedFromIsIdempotent)
 
 BOOST_AUTO_TEST_CASE (AddFileReturnsTheStoredEntry)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/11]

◆ BOOST_AUTO_TEST_CASE() [2/11]

◆ BOOST_AUTO_TEST_CASE() [3/11]

◆ BOOST_AUTO_TEST_CASE() [4/11]

BOOST_AUTO_TEST_CASE ( ComputeFileHash_DifferentContent )

◆ BOOST_AUTO_TEST_CASE() [5/11]

◆ BOOST_AUTO_TEST_CASE() [6/11]

BOOST_AUTO_TEST_CASE ( ComputeFileHash_NonExistentFile )

◆ BOOST_AUTO_TEST_CASE() [7/11]

◆ BOOST_AUTO_TEST_CASE() [8/11]

◆ BOOST_AUTO_TEST_CASE() [9/11]

◆ BOOST_AUTO_TEST_CASE() [10/11]

◆ BOOST_AUTO_TEST_CASE() [11/11]