Project
Loading...
Searching...
No Matches
test_Codecs.cxx File Reference
#include "AODNative/Codecs.h"
#include "AODNative/Errors.h"
#include "RootFraming.h"
#include <catch_amalgamated.hpp>
#include <numeric>
#include <random>

Go to the source code of this file.

Functions

 TEST_CASE ("xxh64 matches the reference implementation")
 
 TEST_CASE ("each codec round-trips a single chunk")
 
 TEST_CASE ("each codec handles several chunks")
 
 TEST_CASE ("bounded decompression stops exactly at maxOut")
 
 TEST_CASE ("prefix reads of large chunks stop exactly at the bound")
 
 TEST_CASE ("no read can follow a prefix read")
 
 TEST_CASE ("incremental reads of odd sizes produce the same bytes")
 
 TEST_CASE ("truncated payloads raise CorruptData")
 
 TEST_CASE ("corrupt payloads raise CorruptData")
 
 TEST_CASE ("LZ4 checksum mismatch is detected")
 
 TEST_CASE ("legacy and unknown algorithms are unsupported")
 
 TEST_CASE ("chunks larger than the object length are rejected")
 

Function Documentation

◆ TEST_CASE() [1/12]

TEST_CASE ( "bounded decompression stops exactly at maxOut"  )

Definition at line 72 of file test_Codecs.cxx.

◆ TEST_CASE() [2/12]

TEST_CASE ( "chunks larger than the object length are rejected"  )

Definition at line 193 of file test_Codecs.cxx.

◆ TEST_CASE() [3/12]

TEST_CASE ( "corrupt payloads raise CorruptData"  )

Definition at line 147 of file test_Codecs.cxx.

◆ TEST_CASE() [4/12]

TEST_CASE ( "each codec handles several chunks"  )

Definition at line 61 of file test_Codecs.cxx.

◆ TEST_CASE() [5/12]

TEST_CASE ( "each codec round-trips a single chunk"  )

Definition at line 50 of file test_Codecs.cxx.

◆ TEST_CASE() [6/12]

TEST_CASE ( "incremental reads of odd sizes produce the same bytes"  )

Definition at line 116 of file test_Codecs.cxx.

◆ TEST_CASE() [7/12]

TEST_CASE ( "legacy and unknown algorithms are unsupported"  )

Definition at line 180 of file test_Codecs.cxx.

◆ TEST_CASE() [8/12]

TEST_CASE ( "LZ4 checksum mismatch is detected"  )

Definition at line 171 of file test_Codecs.cxx.

◆ TEST_CASE() [9/12]

TEST_CASE ( "no read can follow a prefix read"  )

Definition at line 106 of file test_Codecs.cxx.

◆ TEST_CASE() [10/12]

TEST_CASE ( "prefix reads of large chunks stop exactly at the bound"  )

Definition at line 87 of file test_Codecs.cxx.

◆ TEST_CASE() [11/12]

TEST_CASE ( "truncated payloads raise CorruptData"  )

Definition at line 134 of file test_Codecs.cxx.

◆ TEST_CASE() [12/12]

TEST_CASE ( "xxh64 matches the reference implementation"  )

Definition at line 38 of file test_Codecs.cxx.