zoekt: 175
files / 2638
matches / 6.22ms neogrok: 11 files / 500
matches github.com/sourcegraph/zoekt cmd/zoekt-test/main.go 3 matches | Go | №1 14
15 // Command zoekt-test compares the zoekt results with raw substring search.
16 package main
176
177 func test LoadIndexDir(indexDir string) {
178 var a, b runtime.MemStats
223 if *indexDir != "" {
224 test LoadIndexDir(*indexDir)
225 return
9 "strings"
10 "test ing"
11 "unicode"
13
14 type parseTest struct {
15 Regexp string
18
19 var parseTest s = []parseTest {
20 // Base cases
126
127 // Test precedences
128 {`(?:ab)*`, `star{str{ab}}`},
Show 20 more matches 57
58 public static void test Enum(InnerEnum magicEnum) {
59 if (System.nanoTime() > System.currentTimeMillis()) {
76
77 public static void test Anon() {
78 InnerInterface<String, String> fn =
94 System.out.println(runInnerInterface(innerClass, a));
95 test Enum(InnerEnum.A);
96 test Anon();
97 return "";
github.com/sourcegraph/zoekt api_test.go 30 matches | Go | №4 21 "strings"
22 "test ing"
23 "time"
31 */
32 func BenchmarkMinimalRepoListEncodings(b *test ing.B) {
33 size := uint32(13000) // 2021-06-24 rough estimate of number of repos on a replica.
65
66 func benchmarkEncoding(data interface{}) func(*test ing.B) {
67 return func(b *test ing.B) {
68 b.Helper()
86
87 func Test SizeBytesSearchResult(t *test ing.T) {
88 sr := SearchResult{
Show 24 more matches github.com/sourcegraph/zoekt web/e2e_test.go 56 matches | Go | №5 24 "net/http"
25 "net/http/httptest "
26 "reflect"
28 "strings"
29 "test ing"
30 "time"
38
39 // TODO(hanwen): cut & paste from ../ . Should create internal test
40 // util package.
57
58 func searcherForTest (t *test ing.T, b *index.ShardBuilder) zoekt.Streamer {
59 var buf bytes.Buffer
Show 51 more matches github.com/sourcegraph/zoekt marshal_test.go 5 matches | Go | №6 5 "encoding/gob"
6 "test ing"
7 "time"
11
12 func BenchmarkRepoList_Encode(b *test ing.B) {
13 set := genRepoList(1000)
33
34 func BenchmarkRepoList_Decode(b *test ing.B) {
35 set := genRepoList(1000)
53
54 func Test RepoList_Marshal(t *test ing.T) {
55 for i := range []int{0, 1, 10, 100} {
github.com/sourcegraph/zoekt api_proto_test.go 41 matches | Go | №7 23 "reflect"
24 "test ing"
25 "test ing/quick"
26 "time"
35
36 func Test ProtoRoundtrip(t *test ing.T) {
37 t.Run("FileMatch", func(t *test ing.T) {
38 f := func(f1 FileMatch) bool {
Show 36 more matches github.com/sourcegraph/zoekt index/bits_test.go 33 matches | Go | №8 23 "strconv"
24 "test ing"
25 "test ing/quick"
26
31
32 func Test Ngram(t *test ing.T) {
33 in := "abc"
55 func (ngramRunes) Generate(rand *rand.Rand, size int) reflect.Value {
56 // Same implementation used by test ing/quick to generate strings. But we
57 // force it to ngramSize runes.
Show 28 more matches github.com/sourcegraph/zoekt index/eval_test.go 29 matches | Go | №9 22 "strings"
23 "test ing"
24
54
55 func printRegexp(t *test ing.T, r *syntax.Regexp, lvl int) {
56 t.Logf("%s%s ch: %d", strings.Repeat(" ", lvl), opnames[r.Op], len(r.Sub))
79
80 func Test RegexpParse(t *test ing.T) {
81 type test case struct {
82 in string
Show 24 more matches github.com/sourcegraph/zoekt index/read_test.go 26 matches | Go | №10 28 "strings"
29 "test ing"
30
35
36 func Test ReadWrite(t *test ing.T) {
37 b, err := NewShardBuilder(nil)
80
81 func Test ReadWriteNames(t *test ing.T) {
82 b, err := NewShardBuilder(nil)
Show 21 more matches github.com/sourcegraph/zoekt index/index_test.go 248 matches | Go | №11 47
48 func test ShardBuilder(tb test ing.TB, repo *zoekt.Repository, docs ...Document) *ShardBuilder {
49 tb.Helper()
64
65 func test ShardBuilderCompound(t *test ing.T, repos []*zoekt.Repository, docs [][]Document) *ShardBuilder {
66 t.Helper()
71 if len(repos) != len(docs) {
72 t.Fatalf("test ShardBuilderCompound: repos must be the same length as docs, got: len(repos)=%d len(docs)=%d", len(repos), len(docs))
73 }
Show 243 more matches