aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r--searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp2
-rw-r--r--searchlib/src/tests/diskindex/pagedict4/pagedict4_hugeword_cornercase_test.cpp2
2 files changed, 0 insertions, 4 deletions
diff --git a/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp b/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
index 6390e30adff..4d02ea7f61d 100644
--- a/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
+++ b/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
@@ -1144,13 +1144,11 @@ SearchContextTest::testRangeSearch(const AttributePtr & ptr, uint32_t numDocs, s
//std::cout << "}" << std::endl;
}
ptr->commit(true);
- uint32_t smallHits = 0;
ValueType zeroValue = 0;
bool smallUInt = isUnsignedSmallIntAttribute(vec);
if (smallUInt) {
for (uint32_t i = docCnt ; i < numDocs; ++i) {
postingList[zeroValue].insert(i + 1u);
- ++smallHits;
}
}
diff --git a/searchlib/src/tests/diskindex/pagedict4/pagedict4_hugeword_cornercase_test.cpp b/searchlib/src/tests/diskindex/pagedict4/pagedict4_hugeword_cornercase_test.cpp
index 6bda256f6d9..3700a68ff13 100644
--- a/searchlib/src/tests/diskindex/pagedict4/pagedict4_hugeword_cornercase_test.cpp
+++ b/searchlib/src/tests/diskindex/pagedict4/pagedict4_hugeword_cornercase_test.cpp
@@ -95,10 +95,8 @@ calcSegments(uint32_t maxLen)
BitBuffer bb;
PostingListCounts counts = makeBaseCounts();
uint32_t len = bb.getSize(counts);
- unsigned int i = 0;
while (len <= maxLen) {
addSegment(counts);
- ++i;
len = bb.getSize(counts);
}
return counts._segments.size() - 1;