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

Function TestSDC

libs/coding/coding_tests/simple_dense_coding_test.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace
22{
23void TestSDC(vector<uint8_t> const & data, SimpleDenseCoding const & coding)
24{
25 TEST_EQUAL(data.size(), coding.Size(), ());
26 for (size_t i = 0; i < data.size(); ++i)
27 TEST_EQUAL(data[i], coding.Get(i), ());
28}
29} // namespace
30
31UNIT_TEST(SimpleDenseCoding_Smoke)

Callers 1

UNIT_TESTFunction · 0.85

Calls 3

sizeMethod · 0.45
SizeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected