​

zoekt: 89 files / 515 matches / 1.39ms neogrok: 20 files / 219 matches

neogrokinternal/e2e/examples/test_example.py 1 match | Python | №1

2 3 class TestSimpleOperations(unittest.TestCase):4 def test_addition(self):

neogrokapi_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
232 233 func TestRepositoryMergeMutable(t *testing.T) {234 a := Repository{

neogrokweb/e2e_test.go 12 matches | Go | №3

38 39 func TestBasic(t *testing.T) {40 b, err := index.NewShardBuilder(&zoekt.Repository{
104 105 func TestPrint(t *testing.T) {106 b, err := index.NewShardBuilder(&zoekt.Repository{
157 158 func TestPrintDefault(t *testing.T) {159 b, err := index.NewShardBuilder(&zoekt.Repository{
227 228 func TestFormatJson(t *testing.T) {229 b, err := index.NewShardBuilder(&zoekt.Repository{
282 283 func TestContextLines(t *testing.T) {284 b, err := index.NewShardBuilder(&zoekt.Repository{

neogrokmarshal_test.go 1 match | Go | №4

53 54 func TestRepoList_Marshal(t *testing.T) {55 for i := range []int{0, 1, 10, 100} {

neogrokapi_proto_test.go 2 matches | Go | №5

35 36 func TestProtoRoundtrip(t *testing.T) {37 t.Run("FileMatch", func(t *testing.T) {
351 352 func TestSearchOptionsSchedulingClassProto(t *testing.T) {353 if got := SearchOptionsFromProto(&webserverv1.SearchOptions{}).SchedulingClass; got != SchedulingClassInteractive {

neogrokindex/bits_test.go 12 matches | Go | №6

33 34 func TestNgram(t *testing.T) {35 in := "abc"
66 67 func TestDocSection(t *testing.T) {68 in := []DocumentSection{{1, 2}, {3, 4}}
78 79 func TestGenerateCaseNgrams(t *testing.T) {80 ng := stringToNGram("aB1")
99 100 func TestNextFileIndex(t *testing.T) {101 for _, tc := range []struct {
116 117 func TestDeltas(t *testing.T) {118 in := []uint32{1, 72, 0xfff}

neogrokindex/eval_test.go 12 matches | Go | №7

81 82 func TestRegexpParse(t *testing.T) {83 type testcase struct {
158 159 func TestSearch_ShardRepoMaxMatchCountOpt(t *testing.T) {160 cs := compoundReposShard(t, "foo", "bar")
197 198 func TestSearch_ShardMaxMatchCountStats(t *testing.T) {199 cs := compoundReposShard(t, "foo")
232 233 func TestSimplifyRepoSet(t *testing.T) {234 d := compoundReposShard(t, "foo", "bar")
254 255 func TestSimplifyRepoIDs(t *testing.T) {256 d := compoundReposShard(t, "foo", "bar")

neogrokindex/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 {

neogrokweb/server_test.go 1 match | Go | №9

8 9 func TestAddLineNumbers(t *testing.T) {10 tests := []struct {

neogrokindex/index_test.go 97 matches | Go | №10

91 92 func TestBoundary(t *testing.T) {93 b := testShardBuilder(t, nil,
101 102 func TestSearchPanicsOnCorruptRuneOffset(t *testing.T) {103 for _, tc := range []struct {
152 153 func TestSearchPanicsOnMatchPastDocumentEnd(t *testing.T) {154 for _, tc := range []struct {
207 208 func TestDocSectionInvalid(t *testing.T) {209 b, err := NewShardBuilder(nil)
233 234 func TestBasic(t *testing.T) {235 b := testShardBuilder(t, nil,

neogrokindex/ctags_test.go 5 matches | Go | №11

25 26 func TestTagsToSections(t *testing.T) {27 c := []byte("package foo\nfunc bar(j int) {}\n//bla")
46 47 func TestTagsToSectionsMultiple(t *testing.T) {48 c := []byte("class Foo { int x; int b; }")
75 76 func TestTagsToSectionsReverse(t *testing.T) {77 c := []byte("typedef enum { FOO, BAR } bas\n")
109 110 func TestTagsToSectionsEOF(t *testing.T) {111 c := []byte("package foo\nfunc bar(j int) {}")
152 153 func TestOverlaps(t *testing.T) {154 tests := []struct {

neogrokquery/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)

neogrokquery/parse_test.go 3 matches | Go | №13

33 34 func TestParseQuery(t *testing.T) {35 type testcase struct {
191 192 func TestTokenize(t *testing.T) {193 type testcase struct {
235 236 func TestMetaQueryParsing(t *testing.T) {237 cases := []struct {

neogroksearch/eval_test.go 1 match | Go | №14

13 14 func TestSearchTypeRepo(t *testing.T) {15 ss := newShardedSearcher(2)

neogrokindex/limit_test.go 1 match | Go | №15

12 13 func TestLimitMatches(t *testing.T) {14 cases := []struct {

neogroksearch/sched_test.go 6 matches | Go | №16

71 72 func TestYield(t *testing.T) {73 ctx := context.Background()
116 117 func TestYieldCancelledContext(t *testing.T) {118 sched := newMultiScheduler(4)
147 148 func TestMultiScheduler(t *testing.T) {149 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
210 211 func TestMultiSchedulerBatchAdmission(t *testing.T) {212 sched := newMultiScheduler(4)
251 252 func TestMultiSchedulerBatchAdmissionCancellation(t *testing.T) {253 sched := newMultiScheduler(1)

neogrokquery/regexp_test.go 3 matches | Go | №17

53 54 func TestLowerRegexp(t *testing.T) {55 in := "[a-zA-Z]fooBAR"
70 71 func TestOptimize(t *testing.T) {72 tests := []struct {
100 101 func TestRegexpRegexpString(t *testing.T) {102 tests := []struct {

neogroksearch/shards_test.go 22 matches | Go | №18

51 52 func TestMain(m *testing.M) {53 testutil.Main(m)
82 83 func TestSearchSchedulingClass(t *testing.T) {84 sched := &recordingScheduler{}
109 110 func TestSearchHealthCheckSkipsScheduler(t *testing.T) {111 ss := newShardedSearcher(1)
124 125 func TestSearchShedding(t *testing.T) {126 q := &query.Substring{Pattern: "foo"}
196 197 func TestMaxWallTimeIncludesQueueWait(t *testing.T) {198 shard := &deadlineSearcher{}

neogrokindex/builder_test.go 19 matches | Go | №19

26 // ensure we don't regress on how we build v1627 func TestBuildv16(t *testing.T) {28 dir := t.TempDir()
98 99 func TestFlags(t *testing.T) {100 cases := []struct {
161 162 func TestIncrementalSkipIndexing(t *testing.T) {163 cases := []struct {
223 224 func TestMain(m *testing.M) {225 testutil.Main(m)
227 228 func TestDontCountContentOfSkippedFiles(t *testing.T) {229 b, err := NewBuilder(Options{RepositoryDescription: zoekt.Repository{

neogrokquery/marshal_test.go 2 matches | Go | №20

82 83 func TestBranchesRepos_Marshal(t *testing.T) {84 want := genBranchesRepos(1000)
143 144 func TestFileNameSet_Marshal(t *testing.T) {145 for i := range []int{0, 1, 10, 100} {