File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -180,14 +180,17 @@ TEST(QualityTests, SymbolRelevanceSignalExtraction) {
180
180
EXPECT_TRUE (Relevance.InBaseClass );
181
181
182
182
auto Index = Test.index ();
183
- Symbol X;
184
183
FuzzyFindRequest Req;
185
184
Req.Query = " X" ;
186
185
Req.AnyScope = true ;
187
- Index->fuzzyFind (Req, [&X](const Symbol& S){ X = S; });
188
- Relevance = {};
189
- Relevance.merge (X);
190
- EXPECT_EQ (Relevance.Scope , SymbolRelevanceSignals::FileScope);
186
+ bool Matched = false ;
187
+ Index->fuzzyFind (Req, [&](const Symbol &S) {
188
+ Matched = true ;
189
+ Relevance = {};
190
+ Relevance.merge (S);
191
+ EXPECT_EQ (Relevance.Scope , SymbolRelevanceSignals::FileScope);
192
+ });
193
+ EXPECT_TRUE (Matched);
191
194
}
192
195
193
196
// Do the signals move the scores in the direction we expect?
You can’t perform that action at this time.
0 commit comments