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

Function UNIT_TEST

libs/coding/coding_tests/huffman_test.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace coding
36{
37UNIT_TEST(Huffman_Smoke)
38{
39 HuffmanCoder h;
40 h.Init(MakeUniStringVector(vector<string>{"ab", "ac"}));
41
42 TestDecode(h, 0, 1, static_cast<uint32_t>('a')); // 0
43 TestDecode(h, 1, 2, static_cast<uint32_t>('b')); // 10
44 TestDecode(h, 3, 2, static_cast<uint32_t>('c')); // 11
45}
46
47UNIT_TEST(Huffman_OneSymbol)
48{

Callers

nothing calls this directly

Calls 14

MakeUniStringVectorFunction · 0.85
TestDecodeFunction · 0.85
MakeUniStringFunction · 0.85
WriteEncodingMethod · 0.80
ReadEncodingMethod · 0.80
UniStringClass · 0.50
InitMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
ReadAndDecodeMethod · 0.45
PosMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected