zoekt: 63 files / 346 matches / 1.47ms neogrok: 20 files
/
172 matches
github.com/sourcegraph/zoektapi_test.go 6 matches | Go | №1
86
87 func TestSizeBytesSearchResult(t *testing.T) {
88 sr := SearchResult{
125
126 func TestSizeBytesChunkMatches(t *testing.T) {
127 cm := ChunkMatch{
142
143 func TestMatchSize(t *testing.T) {
144 cases := []struct {
170
171 func TestSearchOptions_String(t *testing.T) {
172 // To make sure we don't forget to update the string implementation we use
240
241 func TestRepositoryMergeMutable(t *testing.T) {
242 a := Repository{
github.com/sourcegraph/zoektbits_test.go 11 matches | Go | №2
31
32 func TestNgram(t *testing.T) {
33 in := "abc"
64
65 func TestDocSection(t *testing.T) {
66 in := []DocumentSection{{1, 2}, {3, 4}}
73
74 func TestGenerateCaseNgrams(t *testing.T) {
75 ng := stringToNGram("aB1")
94
95 func TestNextFileIndex(t *testing.T) {
96 for _, tc := range []struct {
111
112 func TestDeltas(t *testing.T) {
113 in := []uint32{1, 72, 0xfff}
github.com/sourcegraph/zoekteval_test.go 9 matches | Go | №3
79
80 func TestRegexpParse(t *testing.T) {
81 type testcase struct {
151
152 func TestSearch_ShardRepoMaxMatchCountOpt(t *testing.T) {
153 cs := compoundReposShard(t, "foo", "bar")
209
210 func TestSimplifyRepoSet(t *testing.T) {
211 d := compoundReposShard(t, "foo", "bar")
231
232 func TestSimplifyRepoIDs(t *testing.T) {
233 d := compoundReposShard(t, "foo", "bar")
255
256 func TestSimplifyRepo(t *testing.T) {
257 re := func(pat string) *query.Repo {
github.com/sourcegraph/zoektread_test.go 7 matches | Go | №4
38
39 func TestReadWrite(t *testing.T) {
40 b, err := NewIndexBuilder(nil)
83
84 func TestReadWriteNames(t *testing.T) {
85 b, err := NewIndexBuilder(nil)
127
128 func TestGet(t *testing.T) {
129 b, err := NewIndexBuilder(nil)
220
221 func TestReadSearch(t *testing.T) {
222 type out struct {
313
314 func TestEncodeRawConfig(t *testing.T) {
315 mustParse := func(s string) uint8 {
github.com/sourcegraph/zoektindex_test.go 86 matches | Go | №5
87
88 func TestBoundary(t *testing.T) {
89 b := testIndexBuilder(t, nil,
97
98 func TestDocSectionInvalid(t *testing.T) {
99 b, err := NewIndexBuilder(nil)
123
124 func TestBasic(t *testing.T) {
125 b := testIndexBuilder(t, nil,
166
167 func TestEmptyIndex(t *testing.T) {
168 b := testIndexBuilder(t, nil)
201
202 func TestNewlines(t *testing.T) {
203 b := testIndexBuilder(t, nil,
github.com/sourcegraph/zoektbtree_test.go 3 matches | Go | №6
7
8 func TestBTree_sorted(t *testing.T) {
9 bt := newBtree(btreeOpts{bucketSize: 2, v: 2})
22
23 func TestFindBucket(t *testing.T) {
24 bt := newBtree(btreeOpts{bucketSize: 4, v: 2})
66
67 func TestGetBucket(t *testing.T) {
68 var off uint32 = 13
github.com/sourcegraph/zoektmerge_test.go 1 match | Go | №7
13 // identical.
14 func TestExplode(t *testing.T) {
15 simpleShards := []string{
github.com/sourcegraph/zoektscore_test.go 1 match | Go | №8
7
8 func TestCalculateTermFrequency(t *testing.T) {
9 cases := []struct {
github.com/sourcegraph/zoektlimit_test.go 1 match | Go | №9
10
11 func TestLimitMatches(t *testing.T) {
12 cases := []struct {
github.com/sourcegraph/zoektweb/e2e_test.go 11 matches | Go | №10
84
85 func TestBasic(t *testing.T) {
86 b, err := zoekt.NewIndexBuilder(&zoekt.Repository{
150
151 func TestPrint(t *testing.T) {
152 b, err := zoekt.NewIndexBuilder(&zoekt.Repository{
203
204 func TestPrintDefault(t *testing.T) {
205 b, err := zoekt.NewIndexBuilder(&zoekt.Repository{
273
274 func TestFormatJson(t *testing.T) {
275 b, err := zoekt.NewIndexBuilder(&zoekt.Repository{
328
329 func TestContextLines(t *testing.T) {
330 b, err := zoekt.NewIndexBuilder(&zoekt.Repository{
github.com/sourcegraph/zoektmarshal_test.go 1 match | Go | №11
53
54 func TestRepoList_Marshal(t *testing.T) {
55 for i := range []int{0, 1, 10, 100} {
github.com/sourcegraph/zoekthititer_test.go 1 match | Go | №12
27
28 func TestCompressedPostingIterator_limit(t *testing.T) {
29 f := func(nums, limits []uint32) bool {
github.com/sourcegraph/zoektbuild/e2e_test.go 8 matches | Go | №13
39
40 func TestBasic(t *testing.T) {
41 dir := t.TempDir()
196
197 func TestLargeFileOption(t *testing.T) {
198 dir := t.TempDir()
248
249 func TestUpdate(t *testing.T) {
250 dir := t.TempDir()
341
342 func TestDeleteOldShards(t *testing.T) {
343 dir := t.TempDir()
424
425 func TestPartialSuccess(t *testing.T) {
426 dir := t.TempDir()
github.com/sourcegraph/zoektapi_proto_test.go 1 match | Go | №14
35
36 func TestProtoRoundtrip(t *testing.T) {
37 t.Run("FileMatch", func(t *testing.T) {
github.com/sourcegraph/zoektmatchtree_test.go 8 matches | Go | №15
161
162 func TestEquivalentQuerySkipRegexpTree(t *testing.T) {
163 tests := []struct {
201 // case:yes"
202 func TestWordSearchSkipRegexpTree(t *testing.T) {
203 qStr := "\\bfoo\\b case:yes"
233
234 func TestSymbolMatchTree(t *testing.T) {
235 tests := []struct {
287
288 func TestRepoSet(t *testing.T) {
289 d := &indexData{
310
311 func TestRepo(t *testing.T) {
312 d := &indexData{
github.com/sourcegraph/zoektjson/json_test.go 4 matches | Go | №16
18
19 func TestClientServer(t *testing.T) {
20 searchQuery := "\"hello world|universe\""
89
90 func TestClientServerWithRepoIDsProvided(t *testing.T) {
91 searchQuery := "hello"
126
127 func TestClientServerWithEmptyRepoIDsProvided(t *testing.T) {
128 searchQuery := "hello"
163
164 func TestProgressNotEncodedInSearch(t *testing.T) {
165 searchQuery := "hello"
github.com/sourcegraph/zoektindexdata_test.go 2 matches | Go | №17
38
39 func TestMinFrequencyNgramOffsets(t *testing.T) {
40 // Our implementation has ill-defined tie breaks when the 2nd smallest
78
79 func TestFindSelectiveNGrams(t *testing.T) {
80 if err := quick.Check(func(s string, maxFreq uint16) bool {
github.com/sourcegraph/zoekttombstones_test.go 1 match | Go | №18
9
10 func TestSetTombstone(t *testing.T) {
11 mockRepos = mkRepos("r1", "r2", "r3")
github.com/sourcegraph/zoektbuild/ctags_test.go 5 matches | Go | №19
25
26 func TestTagsToSections(t *testing.T) {
27 c := []byte("package foo\nfunc bar(j int) {}\n//bla")
46
47 func TestTagsToSectionsMultiple(t *testing.T) {
48 c := []byte("class Foo { int x; int b; }")
75
76 func TestTagsToSectionsReverse(t *testing.T) {
77 c := []byte("typedef enum { FOO, BAR } bas\n")
109
110 func TestTagsToSectionsEOF(t *testing.T) {
111 c := []byte("package foo\nfunc bar(j int) {}")
152
153 func TestOverlaps(t *testing.T) {
154 tests := []struct {
github.com/sourcegraph/zoektquery/query_test.go 5 matches | Go | №20
27
28 func TestQueryString(t *testing.T) {
29 q := &Or{[]Q{
42
43 func TestSimplify(t *testing.T) {
44 type testcase struct {
88
89 func TestMap(t *testing.T) {
90 in := NewAnd(&Substring{Pattern: "bla"}, &Not{&Repo{Regexp: regexp.MustCompile("foo")}})
104
105 func TestVisitAtoms(t *testing.T) {
106 in := NewAnd(&Substring{}, &Repo{}, &Not{&Const{}})
115
116 func TestExpandFileContent(t *testing.T) {
117 re, _ := syntax.Parse("foo", syntax.Perl)