zoekt: 174 files / 2565 matches / 4.97ms neogrok: 8 files / 500 matches

github.com/sourcegraph/zoektcmd/zoekt-test/main.go 3 matches | Go | №1

14 15 // zoekt-test compares the search engine results with raw substring search16 package main
176 177 func testLoadIndexDir(indexDir string) {178 var a, b runtime.MemStats
223 if *indexDir != "" {224 testLoadIndexDir(*indexDir)225 return

github.com/sourcegraph/zoektinternal/syntaxutil/parse_test.go 25 matches | Go | №2

9 "strings"10 "testing"11 "unicode"
13 14 type parseTest struct {15 Regexp string
18 19 var parseTests = []parseTest{20 // Base cases
126 127 // Test precedences128 {`(?:ab)*`, `star{str{ab}}`},

github.com/sourcegraph/zoektbuild/testdata/example.java 4 matches | Java | №3

57 58 public static void testEnum(InnerEnum magicEnum) {59 if (System.nanoTime() > System.currentTimeMillis()) {
76 77 public static void testAnon() {78 InnerInterface<String, String> fn =
94 System.out.println(runInnerInterface(innerClass, a));95 testEnum(InnerEnum.A);96 testAnon();97 return "";

github.com/sourcegraph/zoektapi_test.go 30 matches | Go | №4

21 "strings"22 "testing"23 "time"
31 */32 func BenchmarkMinimalRepoListEncodings(b *testing.B) {33 size := uint32(13000) // 2021-06-24 rough estimate of number of repos on a replica.
65 66 func benchmarkEncoding(data interface{}) func(*testing.B) {67 return func(b *testing.B) {68 b.Helper()
86 87 func TestSizeBytesSearchResult(t *testing.T) {88 sr := SearchResult{

github.com/sourcegraph/zoektbits_test.go 33 matches | Go | №5

23 "strconv"24 "testing"25 "testing/quick"26
31 32 func TestNgram(t *testing.T) {33 in := "abc"
55 func (ngramRunes) Generate(rand *rand.Rand, size int) reflect.Value {56 // Same implementation used by testing/quick to generate strings. But we57 // force it to ngramSize runes.

github.com/sourcegraph/zoekteval_test.go 29 matches | Go | №6

22 "strings"23 "testing"24
54 55 func printRegexp(t *testing.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 TestRegexpParse(t *testing.T) {81 type testcase struct {82 in string

github.com/sourcegraph/zoektread_test.go 26 matches | Go | №7

29 "strings"30 "testing"31
38 39 func TestReadWrite(t *testing.T) {40 b, err := NewIndexBuilder(nil)
83 84 func TestReadWriteNames(t *testing.T) {85 b, err := NewIndexBuilder(nil)

github.com/sourcegraph/zoektindex_test.go 350 matches | Go | №8

46 47 func testIndexBuilder(t *testing.T, repo *Repository, docs ...Document) *IndexBuilder {48 t.Helper()
63 64 func testIndexBuilderCompound(t *testing.T, repos []*Repository, docs [][]Document) *IndexBuilder {65 t.Helper()
70 if len(repos) != len(docs) {71 t.Fatalf("testIndexBuilderCompound: repos must be the same length as docs, got: len(repos)=%d len(docs)=%d", len(repos), len(docs))72 }