89 references to GetTestAccessor
IdeCoreBenchmarks (13)
NavigateToFuzzyPreFilterBenchmarks.cs (6)
94
=> _sameLengthIndex.
GetTestAccessor
().LengthCheckPasses("XyzWvq");
102
=> _variedLengthIndex.
GetTestAccessor
().LengthCheckPasses("XyzWvq");
116
=> _sameLengthIndex.
GetTestAccessor
().BigramCountCheckPasses("XyzWvq");
124
=> _sameLengthIndex.
GetTestAccessor
().BigramCountCheckPasses("AabBcd");
156
=> _sameLengthIndex.
GetTestAccessor
().BigramCountCheckPasses("XyzWvqRs");
163
=> _variedLengthIndex.
GetTestAccessor
().BigramCountCheckPasses("XyzWvqRsTu");
NavigateToRegexPreFilterBenchmarks.cs (7)
74
public bool PreFilterSimple() => _index.
GetTestAccessor
().RegexQueryCheckPasses(_simpleQuery);
77
public bool PreFilterAlternation() => _index.
GetTestAccessor
().RegexQueryCheckPasses(_alternationQuery);
80
public bool PreFilterComplex() => _index.
GetTestAccessor
().RegexQueryCheckPasses(_complexQuery);
83
public bool PreFilterNoMatch() => _index.
GetTestAccessor
().RegexQueryCheckPasses(_noMatchQuery);
92
public bool NgramCheckShort() => _index.
GetTestAccessor
().NgramCheckPasses("read");
95
public bool NgramCheckLong() => _index.
GetTestAccessor
().NgramCheckPasses("readline");
98
public bool NgramCheckNoMatch() => _index.
GetTestAccessor
().NgramCheckPasses("xyzwvq");
Microsoft.CodeAnalysis.Workspaces.UnitTests (76)
FindSymbols\NavigateToSearchIndexTests.cs (60)
159
Assert.Equal(expected, index.
GetTestAccessor
().HumpCheckPasses(pattern));
180
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("G"));
181
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("X"));
184
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("GX"));
187
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("XG"));
291
Assert.Equal(expected, index.
GetTestAccessor
().HumpCheckPasses(pattern));
305
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("goo"));
306
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("xab"));
312
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("gx"));
315
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("gooxab"));
328
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("bar"));
331
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("ba"));
334
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("bax"));
354
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("gobar"));
359
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("gooba"));
363
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("goobarg"));
369
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("gobarg"));
383
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("gxbar"));
388
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("gooxbar"));
392
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("gxb"));
405
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("gbba"));
409
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("gbbar"));
412
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("goobarbaz"));
416
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("goobazbaz"));
421
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("goobxbaz"));
500
Assert.Equal(expected, index.
GetTestAccessor
().NgramCheckPasses(pattern));
563
Assert.Equal(expected, index.
GetTestAccessor
().LengthCheckPasses(pattern));
632
Assert.Equal(expected, index.
GetTestAccessor
().BigramCountCheckPasses(pattern));
645
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("alph"));
648
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("beta"));
651
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("albe"));
665
Assert.True(index.
GetTestAccessor
().LengthCheckPasses("Xyzwvq"));
667
Assert.False(index.
GetTestAccessor
().BigramCountCheckPasses("Xyzwvq"));
688
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("gooαβ"));
693
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("gooγδ"));
708
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("a_b_"));
712
Assert.False(index.
GetTestAccessor
().BigramCountCheckPasses("aαbα"));
815
Assert.Equal(expected, index.
GetTestAccessor
().ContainerCheckPasses(containerPattern));
907
var expectedFuzzy = index.
GetTestAccessor
().LengthCheckPasses(patternName)
908
&& index.
GetTestAccessor
().BigramCountCheckPasses(patternName);
1022
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("G"));
1023
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("B"));
1026
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("GB"));
1029
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("A"));
1030
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("C"));
1031
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("X"));
1032
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("Z"));
1044
Assert.True(index.
GetTestAccessor
().HumpCheckPasses("GB"));
1047
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("BG"));
1069
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("line"));
1072
Assert.True(index.
GetTestAccessor
().NgramCheckPasses("line"));
1076
Assert.False(index.
GetTestAccessor
().LengthCheckPasses("line"));
1102
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("Xoobar"));
1104
Assert.False(index.
GetTestAccessor
().NgramCheckPasses("Xoobar"));
1106
Assert.True(index.
GetTestAccessor
().LengthCheckPasses("Xoobar"));
1109
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("Xoobar"));
1198
Assert.False(index.
GetTestAccessor
().HumpCheckPasses("Xoobar"));
1199
Assert.False(index.
GetTestAccessor
().NgramCheckPasses("Xoobar"));
1200
Assert.True(index.
GetTestAccessor
().LengthCheckPasses("Xoobar"));
1203
Assert.True(index.
GetTestAccessor
().BigramCountCheckPasses("Xoobar"));
FindSymbols\RegexPreFilterTests.cs (16)
40
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
48
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
59
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
70
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
81
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
95
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
107
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
119
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
130
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
141
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
149
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
157
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
178
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
191
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
202
Assert.False(index.
GetTestAccessor
().RegexQueryCheckPasses(query));
213
Assert.True(index.
GetTestAccessor
().RegexQueryCheckPasses(query));