zoekt: 174 files / 2565 matches / 4.97ms neogrok: 8 files
/
500 matches github.com/sourcegraph/zoekt cmd/zoekt-test/main.go 3 matches | Go | №1 14
15 // zoekt-test compares the search engine 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 bits_test.go 33 matches | Go | №5 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 eval_test.go 29 matches | Go | №6 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 read_test.go 26 matches | Go | №7 29 "strings"
30 "test ing"
31
38
39 func Test ReadWrite(t *test ing.T) {
40 b, err := NewIndexBuilder(nil)
83
84 func Test ReadWriteNames(t *test ing.T) {
85 b, err := NewIndexBuilder(nil)
Show 21 more matches github.com/sourcegraph/zoekt index_test.go 350 matches | Go | №8 46
47 func test IndexBuilder(t *test ing.T, repo *Repository, docs ...Document) *IndexBuilder {
48 t.Helper()
63
64 func test IndexBuilderCompound(t *test ing.T, repos []*Repository, docs [][]Document) *IndexBuilder {
65 t.Helper()
70 if len(repos) != len(docs) {
71 t.Fatalf("test IndexBuilderCompound: repos must be the same length as docs, got: len(repos)=%d len(docs)=%d", len(repos), len(docs))
72 }
Show 345 more matches