jaulib v1.4.0-2-g788cf73
Jau Support Library (C++, Java, ..)
|
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <jau/basic_types.hpp>
#include <jau/bitfield.hpp>
#include <jau/bitheap.hpp>
#include <jau/debug.hpp>
#include <jau/int_math.hpp>
#include <jau/int_math_ct.hpp>
#include <jau/io/file_util.hpp>
#include <jau/io/io_util.hpp>
#include <jau/string_util.hpp>
#include <jau/test/catch2_ext.hpp>
#include "data_bitstream.hpp"
Go to the source code of this file.
Classes | |
struct | TestDataBF |
Functions | |
template<jau::req::unsigned_integral StorageType, size_t BitSize> | |
static void | assertEquals (const jau::bitfield_t< StorageType, BitSize > &bf, const size_t bf_off, const uint64_t v, const std::string_view pattern, size_t oneBitCount) |
template<jau::req::unsigned_integral StorageType, size_t BitSize> | |
static void | checkOtherBits (const TestDataBF &d, const jau::bitfield_t< StorageType, BitSize > &bf, const size_t lowBitnum, const std::string &msg, const StorageType expBits) |
static jau::bitheap | getBitheap (const jau::bit_order_t dataBitOrder, const jau::nsize_t preBits, const jau::nsize_t skipBits, const jau::nsize_t postBits) |
static std::ostream & | operator<< (std::ostream &out, const TestDataBF &v) |
static void | test_AlignedBits (std::string_view prefix, const TestDataBF &d) |
template<jau::req::unsigned_integral StorageType, size_t BitSize1, size_t BitSize2> | |
static void | test_AlignedBits (std::string_view prefix, const TestDataBF &d, jau::bitfield_t< StorageType, BitSize1 > &bf1, jau::bitfield_t< StorageType, BitSize2 > &bf2) |
static void | test_BitCount32_Data (const uint32_t i, const uint32_t expOneBits) |
static void | test_BitCount32_Samples (const uint32_t l) |
TEST_CASE ("Bitfield Test 00", "[bitfield]") | |
TEST_CASE ("Bitfield Test 01 BitCount32_One", "[bitfield]") | |
TEST_CASE ("Bitfield Test 01 subbits", "[bitfield][subbits]") | |
TEST_CASE ("Bitfield Test 10 BitCount32_One", "[bitfield]") | |
TEST_CASE ("Bitfield Test 11 BitCount32_Data", "[bitfield]") | |
TEST_CASE ("Bitfield Test 20 ValidateTestData", "[bitfield]") | |
TEST_CASE ("Bitfield Test 21 Alignedbits", "[bitfield]") | |
TEST_CASE ("Bitfield Test 22 Unalignedbits", "[bitfield]") | |
TEST_CASE ("Bitfield Test 30 Aligned Reverse", "[bitfield][bitreverse]") | |
TEST_CASE ("Bitfield Test 31 Unaligned Reverse", "[bitfield][bitreverse]") | |
template<size_t BitSize1, size_t BitSize2> | |
static void | test_Unaligned (const TestDataBF &d) |
template<jau::req::unsigned_integral StorageType, size_t BitSize> | |
static void | test_Unaligned (const TestDataBF &d, jau::bitfield_t< StorageType, BitSize > &bf) |
template<jau::req::unsigned_integral StorageType, size_t BitSize> | |
static void | test_Unaligned (const TestDataBF &d, jau::bitfield_t< StorageType, BitSize > &bf, const size_t lowBitnum) |
static void | test_ValidateTestData (std::string_view prefix, const TestDataBF &d) |
template<size_t BitSize> | |
static void | testAlignedBitReverse (std::string_view prefix, const TestDataBF &d) |
template<jau::req::unsigned_integral StorageType, size_t BitSize> | |
static void | testAlignedBitReverse (std::string_view prefix, const TestDataBF &d, jau::bitfield_t< StorageType, BitSize > &bf) |
template<jau::req::unsigned_integral StorageType, size_t BitSize> | |
static void | testUnalignedBitReverse (std::string_view prefix, const size_t offset, const TestDataBF &d, jau::bitfield_t< StorageType, BitSize > &bf) |
template<size_t BitSize> | |
static void | testUnalignedBitReverse (std::string_view prefix, const TestDataBF &d) |
Variables | |
static std::vector< TestDataBF > | testDataBF16Bit |
static std::vector< TestDataBF > | testDataBF32Bit |
static std::vector< TestDataBF > | testDataBF3Bit |
static std::vector< TestDataBF > | testDataBF64Bit |
static std::vector< uint32_t > | testDataOneBit |
TEST_CASE | ( | "Bitfield Test 00" | , |
"" | [bitfield] ) |
Definition at line 32 of file test_bitfield00.cpp.
TEST_CASE | ( | "Bitfield Test 01 BitCount32_One" | , |
"" | [bitfield] ) |
Definition at line 109 of file test_bitfield00.cpp.
|
static |
TEST_CASE | ( | "Bitfield Test 01 subbits" | , |
"" | [bitfield][subbits] ) |
Definition at line 160 of file test_bitfield00.cpp.
|
static |
TEST_CASE | ( | "Bitfield Test 10 BitCount32_One" | , |
"" | [bitfield] ) |
Definition at line 185 of file test_bitfield00.cpp.
|
static |
TEST_CASE | ( | "Bitfield Test 11 BitCount32_Data" | , |
"" | [bitfield] ) |
Definition at line 233 of file test_bitfield00.cpp.
|
static |
Definition at line 255 of file test_bitfield00.cpp.
|
static |
TEST_CASE | ( | "Bitfield Test 20 ValidateTestData" | , |
"" | [bitfield] ) |
Definition at line 318 of file test_bitfield00.cpp.
|
static |
|
static |
|
static |
Definition at line 389 of file test_bitfield00.cpp.
TEST_CASE | ( | "Bitfield Test 21 Alignedbits" | , |
"" | [bitfield] ) |
Definition at line 402 of file test_bitfield00.cpp.
|
static |
|
static |
|
static |
Definition at line 586 of file test_bitfield00.cpp.
|
static |
Definition at line 595 of file test_bitfield00.cpp.
TEST_CASE | ( | "Bitfield Test 22 Unalignedbits" | , |
"" | [bitfield] ) |
Definition at line 602 of file test_bitfield00.cpp.
|
static |
|
static |
Definition at line 643 of file test_bitfield00.cpp.
TEST_CASE | ( | "Bitfield Test 30 Aligned Reverse" | , |
"" | [bitfield][bitreverse] ) |
Definition at line 654 of file test_bitfield00.cpp.
|
static |
|
static |
Definition at line 708 of file test_bitfield00.cpp.
TEST_CASE | ( | "Bitfield Test 31 Unaligned Reverse" | , |
"" | [bitfield][bitreverse] ) |
Definition at line 734 of file test_bitfield00.cpp.
|
static |
Definition at line 209 of file test_bitfield00.cpp.
|
static |
Definition at line 259 of file test_bitfield00.cpp.
|
static |
Definition at line 271 of file test_bitfield00.cpp.
|
static |
Definition at line 281 of file test_bitfield00.cpp.
|
static |
Definition at line 297 of file test_bitfield00.cpp.