zoekt: 188
files / 2783
matches / 4.76ms neogrok: 13 files / 500
matches 1 import unittest 2 3 class Test SimpleOperations(unittest .Test Case):4 def test _addition(self):5 self.assertEqual(2 + 2, 4) Show 2 more matches github.com/sourcegraph/zoekt cmd/zoekt-test/main.go 3 matches | Go | №2 14 15 // Command zoekt-test compares the zoekt results with raw substring search.16 package main176 177 func test LoadIndexDir(indexDir string) {178 var a, b runtime.MemStats223 if *indexDir != "" {224 test LoadIndexDir(*indexDir)225 return 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 ""; 9 "strings"10 "test ing"11 "unicode"13 14 type parseTest struct {15 Regexp string18 19 var parseTest s = []parseTest {20 // Base cases126 127 // Test precedences128 {`(?:ab)*`, `star{str{ab}}`}, Show 20 more matches github.com/sourcegraph/zoekt api_test.go 40 matches | Go | №5 22 "strings"23 "test ing"24 "time"32 */33 func BenchmarkMinimalRepoListEncodings(b *test ing.B) {34 size := uint32(13000) // 2021-06-24 rough estimate of number of repos on a replica.66 67 func benchmarkEncoding(data any) func(*test ing.B) {68 return func(b *test ing.B) {69 b.Helper()87 88 func Test SizeBytesSearchResult(t *test ing.T) {89 sr := SearchResult{ Show 34 more matches github.com/sourcegraph/zoekt web/e2e_test.go 56 matches | Go | №6 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 | №7 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 | №8 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 | №9 24 "strconv"25 "test ing"26 "test ing/quick"27 32 33 func Test Ngram(t *test ing.T) {34 in := "abc"56 func (ngramRunes) Generate(rand *rand.Rand, size int) reflect.Value {57 // Same implementation used by test ing/quick to generate strings. But we58 // force it to ngramSize runes. Show 28 more matches github.com/sourcegraph/zoekt index/eval_test.go 35 matches | Go | №10 23 "strings"24 "test ing"25 56 57 func printRegexp(t *test ing.T, r *syntax.Regexp, lvl int) {58 t.Logf("%s%s ch: %d", strings.Repeat(" ", lvl), opnames[r.Op], len(r.Sub))81 82 func Test RegexpParse(t *test ing.T) {83 type test case struct {84 in string Show 30 more matches github.com/sourcegraph/zoekt index/read_test.go 26 matches | Go | №11 28 "strings"29 "test ing"30 36 37 func Test ReadWrite(t *test ing.T) {38 b, err := NewShardBuilder(nil)81 82 func Test ReadWriteNames(t *test ing.T) {83 b, err := NewShardBuilder(nil) Show 21 more matches github.com/sourcegraph/zoekt web/server_test.go 6 matches | Go | №12 8 9 func Test AddLineNumbers(t *test ing.T) {10 test s := []struct {11 name string87 88 for _, tt := range test s {89 t.Run(tt.name, func(t *test ing.T) {90 got := AddLineNumbers(tt.content, tt.lineNum, tt.isBefore) github.com/sourcegraph/zoekt index/index_test.go 219 matches | Go | №13 89 90 func Test Boundary(t *test ing.T) {91 b := test ShardBuilder(t, nil,92 Document{Name: "f1", Content: []byte("x the")},99 100 func Test DocSectionInvalid(t *test ing.T) {101 b, err := NewShardBuilder(nil) Show 214 more matches