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

Function TestDecode

libs/coding/coding_tests/huffman_test.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void TestDecode(coding::HuffmanCoder const & h, uint32_t bits, uint32_t len, uint32_t expected)
27{
28 coding::HuffmanCoder::Code code(bits, len);
29 uint32_t received;
30 TEST(h.Decode(code, received), ("Could not decode", code.bits, "( length", code.len, ")"));
31 TEST_EQUAL(expected, received, ());
32}
33} // namespace
34
35namespace coding

Callers 1

UNIT_TESTFunction · 0.85

Calls 2

TESTFunction · 0.85
DecodeMethod · 0.45

Tested by

no test coverage detected