zoekt: 73
files / 385
matches / 1.55ms neogrok: 20 files / 180
matches
2 3 class TestSimpleOperations(unittest.TestCase):4 def test_addition(self): github.com/sourcegraph/zoektapi_test.go 7 matches | Go | №2
87 88 func TestSizeBytesSearchResult(t *testing.T) {89 sr := SearchResult{ 126 127 func TestSizeBytesChunkMatches(t *testing.T) {128 cm := ChunkMatch{ 143 144 func TestMatchSize(t *testing.T) {145 cases := []struct { 165 166 func TestSearchOptions_String(t *testing.T) {167 // To make sure we don't forget to update the string implementation we use 235 236 func TestRepositoryMergeMutable(t *testing.T) {237 a := Repository{ github.com/sourcegraph/zoektweb/e2e_test.go 11 matches | Go | №3
85 86 func TestBasic(t *testing.T) {87 b, err := index.NewShardBuilder(&zoekt.Repository{ 151 152 func TestPrint(t *testing.T) {153 b, err := index.NewShardBuilder(&zoekt.Repository{ 204 205 func TestPrintDefault(t *testing.T) {206 b, err := index.NewShardBuilder(&zoekt.Repository{ 274 275 func TestFormatJson(t *testing.T) {276 b, err := index.NewShardBuilder(&zoekt.Repository{ 329 330 func TestContextLines(t *testing.T) {331 b, err := index.NewShardBuilder(&zoekt.Repository{ github.com/sourcegraph/zoektmarshal_test.go 1 match | Go | №4
53 54 func TestRepoList_Marshal(t *testing.T) {55 for i := range []int{0, 1, 10, 100} { github.com/sourcegraph/zoektapi_proto_test.go 1 match | Go | №5
35 36 func TestProtoRoundtrip(t *testing.T) {37 t.Run("FileMatch", func(t *testing.T) { github.com/sourcegraph/zoektindex/bits_test.go 11 matches | Go | №6
32 33 func TestNgram(t *testing.T) {34 in := "abc" 65 66 func TestDocSection(t *testing.T) {67 in := []DocumentSection{{1, 2}, {3, 4}} 74 75 func TestGenerateCaseNgrams(t *testing.T) {76 ng := stringToNGram("aB1") 95 96 func TestNextFileIndex(t *testing.T) {97 for _, tc := range []struct { 112 113 func TestDeltas(t *testing.T) {114 in := []uint32{1, 72, 0xfff} github.com/sourcegraph/zoektindex/eval_test.go 11 matches | Go | №7
81 82 func TestRegexpParse(t *testing.T) {83 type testcase struct { 153 154 func TestSearch_ShardRepoMaxMatchCountOpt(t *testing.T) {155 cs := compoundReposShard(t, "foo", "bar") 211 212 func TestSimplifyRepoSet(t *testing.T) {213 d := compoundReposShard(t, "foo", "bar") 233 234 func TestSimplifyRepoIDs(t *testing.T) {235 d := compoundReposShard(t, "foo", "bar") 257 258 func TestSimplifyRepo(t *testing.T) {259 re := func(pat string) *query.Repo { github.com/sourcegraph/zoektindex/read_test.go 7 matches | Go | №8
36 37 func TestReadWrite(t *testing.T) {38 b, err := NewShardBuilder(nil) 81 82 func TestReadWriteNames(t *testing.T) {83 b, err := NewShardBuilder(nil) 125 126 func TestGet(t *testing.T) {127 b, err := NewShardBuilder(nil) 218 219 func TestReadSearch(t *testing.T) {220 type out struct { 311 312 func TestEncodeRawConfig(t *testing.T) {313 mustParse := func(s string) uint8 { github.com/sourcegraph/zoektweb/server_test.go 1 match | Go | №9
8 9 func TestAddLineNumbers(t *testing.T) {10 tests := []struct { github.com/sourcegraph/zoektindex/index_test.go 88 matches | Go | №10
89 90 func TestBoundary(t *testing.T) {91 b := testShardBuilder(t, nil, 99 100 func TestDocSectionInvalid(t *testing.T) {101 b, err := NewShardBuilder(nil) 125 126 func TestBasic(t *testing.T) {127 b := testShardBuilder(t, nil, 168 169 func TestEmptyIndex(t *testing.T) {170 b := testShardBuilder(t, nil) 203 204 func TestNewlines(t *testing.T) {205 b := testShardBuilder(t, nil, github.com/sourcegraph/zoektindex/ctags_test.go 5 matches | Go | №11
24 25 func TestTagsToSections(t *testing.T) {26 c := []byte("package foo\nfunc bar(j int) {}\n//bla") 45 46 func TestTagsToSectionsMultiple(t *testing.T) {47 c := []byte("class Foo { int x; int b; }") 74 75 func TestTagsToSectionsReverse(t *testing.T) {76 c := []byte("typedef enum { FOO, BAR } bas\n") 108 109 func TestTagsToSectionsEOF(t *testing.T) {110 c := []byte("package foo\nfunc bar(j int) {}") 151 152 func TestOverlaps(t *testing.T) {153 tests := []struct { github.com/sourcegraph/zoektquery/query_test.go 5 matches | Go | №12
27 28 func TestQueryString(t *testing.T) {29 q := &Or{[]Q{ 42 43 func TestSimplify(t *testing.T) {44 type testcase struct { 102 103 func TestMap(t *testing.T) {104 in := NewAnd(&Substring{Pattern: "bla"}, &Not{&Repo{Regexp: regexp.MustCompile("foo")}}) 118 119 func TestVisitAtoms(t *testing.T) {120 in := NewAnd(&Substring{}, &Repo{}, &Not{&Const{}}) 129 130 func TestExpandFileContent(t *testing.T) {131 re, _ := syntax.Parse("foo", syntax.Perl) github.com/sourcegraph/zoektindex/btree_test.go 3 matches | Go | №13
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/zoektquery/parse_test.go 3 matches | Go | №14
33 34 func TestParseQuery(t *testing.T) {35 type testcase struct { 160 161 func TestTokenize(t *testing.T) {162 type testcase struct { 202 203 func TestMetaQueryParsing(t *testing.T) {204 cases := []struct { github.com/sourcegraph/zoektindex/merge_test.go 1 match | Go | №15
15 // identical.16 func TestExplode(t *testing.T) {17 simpleShards := []string{ github.com/sourcegraph/zoektsearch/eval_test.go 1 match | Go | №16
12 13 func TestSearchTypeRepo(t *testing.T) {14 ss := newShardedSearcher(2) github.com/sourcegraph/zoektindex/limit_test.go 1 match | Go | №17
12 13 func TestLimitMatches(t *testing.T) {14 cases := []struct { github.com/sourcegraph/zoektsearch/sched_test.go 3 matches | Go | №18
70 71 func TestYield(t *testing.T) {72 ctx := context.Background() 115 116 func TestMultiScheduler(t *testing.T) {117 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) 184 185 func TestParseTuneables(t *testing.T) {186 cases := map[string]map[string]int{ github.com/sourcegraph/zoektquery/regexp_test.go 2 matches | Go | №19
53 54 func TestLowerRegexp(t *testing.T) {55 in := "[a-zA-Z]fooBAR" 70 71 func TestOptimize(t *testing.T) {72 tests := []struct { github.com/sourcegraph/zoektsearch/shards_test.go 17 matches | Go | №20
45 46 func TestMain(m *testing.M) {47 flag.Parse() 71 72 func TestCrashResilience(t *testing.T) {73 out := &bytes.Buffer{} 158 159 func TestOrderByShard(t *testing.T) {160 ss := newShardedSearcher(1) 199 200 func TestShardedSearcher_Ranking(t *testing.T) {201 ss := newShardedSearcher(1) 241 242 func TestShardedSearcher_DocumentRanking(t *testing.T) {243 ss := newShardedSearcher(1)