MCPcopy Create free account
hub / github.com/bytedance/bolt / testEquals

Function testEquals

bolt/vector/tests/SelectivityVectorTest.cpp:270–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268namespace {
269
270void testEquals(
271 bool expectEqual,
272 std::function<void(SelectivityVector&)> mungeFunc = nullptr) {
273 const size_t vectorSize = 1000;
274 SelectivityVector vector1(vectorSize);
275 SelectivityVector vector2(vectorSize);
276
277 if (mungeFunc != nullptr) {
278 mungeFunc(vector2);
279 }
280
281 ASSERT_EQ(expectEqual, vector1 == vector2);
282 ASSERT_NE(expectEqual, vector1 != vector2);
283}
284
285} // namespace
286

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected