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

Function CheckBinaryOp

libs/coding/coding_tests/compressed_bit_vector_test.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38template <typename TBinaryOp>
39void CheckBinaryOp(TBinaryOp op, vector<uint64_t> & setBits1, vector<uint64_t> & setBits2,
40 coding::CompressedBitVector const & cbv)
41{
42 vector<uint64_t> expected;
43 op(setBits1, setBits2, expected);
44 TEST_EQUAL(expected.size(), cbv.PopCount(), ());
45
46 for (size_t i = 0; i < expected.size(); ++i)
47 TEST(cbv.GetBit(expected[i]), ());
48}
49
50void CheckIntersection(vector<uint64_t> & setBits1, vector<uint64_t> & setBits2,
51 coding::CompressedBitVector const & cbv)

Callers 3

CheckIntersectionFunction · 0.85
CheckSubtractionFunction · 0.85
CheckUnionFunction · 0.85

Calls 4

TESTFunction · 0.85
sizeMethod · 0.45
PopCountMethod · 0.45
GetBitMethod · 0.45

Tested by

no test coverage detected