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

Function assertIsValid

bolt/vector/tests/SelectivityVectorTest.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void assertIsValid(
77 int from,
78 int to,
79 const SelectivityVector& vector,
80 bool value) {
81 for (int i = 0; i < from; i++) {
82 EXPECT_EQ(!value, vector.isValid(i)) << "at " << i;
83 }
84 for (int i = from; i < to; i++) {
85 EXPECT_EQ(value, vector.isValid(i)) << "at " << i;
86 }
87}
88
89void setValid_normal(bool setToValue) {
90 // A little bit more than 2 simd widths, so overflow.

Callers 1

TESTFunction · 0.85

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected