MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/coding/coding_tests/succinct_mapper_test.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace coding;
12
13UNIT_TEST(ReverseMapper_Smoke)
14{
15 uint64_t data = 0x0123456789abcdef;
16 uint64_t rdata = 0x0;
17 TEST_EQUAL(8, ReverseMap(rdata, reinterpret_cast<uint8_t *>(&data), "uint64_t"), ());
18
19 // Test that reversed uint64_t was read.
20 TEST_EQUAL(0xefcdab8967452301, rdata, ());
21
22 // Test that underlying buffer was modified.
23 TEST_EQUAL(0xefcdab8967452301, data, ());
24}
25
26UNIT_TEST(Freeze_Smoke)
27{

Callers

nothing calls this directly

Calls 6

ReverseMapFunction · 0.85
FreezeFunction · 0.85
ReverseFreezeFunction · 0.85
MapFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected