zoekt: 13 files / 75 matches / 0.7ms neogrok: 13 files / 75 matches

github.com/sourcegraph/zoektinternal/e2e/examples/example.cc 13 matches | C++ | №1

8 9 struct FooStruct { }; // LF_STRUCTURE10 11 class FooClass { // LF_CLASS12 public:
33 34 void *FooClass::StaticMember = nullptr;35 36 class Inherit : public FooClass { // LF_BCLASS37 public:
41 42 class VInherit : public virtual FooClass { // LF_VBCLASS43

github.com/sourcegraph/zoektlanguages/extensions.go 2 matches | Go | №2

171 for ext := range overrideAmbiguousExtensionsMap {172 langs := enry.GetLanguagesByExtension("foo"+ext, nil, nil)173 for _, lang := range langs {
184 considered[lang] = struct{}{}185 langs := enry.GetLanguagesByExtension("foo"+specialOverrideExt, nil, nil)186 for _, lang := range langs {

github.com/sourcegraph/zoektinternal/e2e/examples/example.py 2 matches | Python | №3

48 49 # vvv recursive.foo ref,nodef50 recursive = recursive.foo51

github.com/sourcegraph/zoektindex/index_test.go 9 matches | Go | №4

494 Q: &query.Substring{495 Pattern: "foo",496 Content: true,
506 &query.Substring{507 Pattern: "foo",508 Content: true,
519 ShardsSkippedFilter: 1,520 NgramLookups: 3, // we lookedup "foo" once (1), but lookedup and created "a y" (2).521 },
1137 Document{Name: "helpers.go", Content: []byte("x apple y")},1138 Document{Name: "foo", Content: []byte("x apple y")})1139
1509 &query.Substring{Pattern: "needle"},1510 &query.Repo{Regexp: regexp.MustCompile("foo")},1511 ))

github.com/sourcegraph/zoektquery/query_test.go 8 matches | Go | №5

103 func TestMap(t *testing.T) {104 in := NewAnd(&Substring{Pattern: "bla"}, &Not{&Repo{Regexp: regexp.MustCompile("foo")}})105 out := NewAnd(&Substring{Pattern: "bla"}, &Not{&Const{false}})
130 func TestExpandFileContent(t *testing.T) {131 re, _ := syntax.Parse("foo", syntax.Perl)132
155 q: &Regexp{Regexp: re, FileName: true, Content: true},156 want: "(or file_regex:\"foo\" regex:\"foo\")",157 },
159 q: &Regexp{Regexp: re, FileName: false, Content: false},160 want: "(or file_regex:\"foo\" regex:\"foo\")",161 },

github.com/sourcegraph/zoektquery/parse_test.go 11 matches | Go | №6

120 {"\"a\\", nil},121 {"case:foo", nil},122
134 {")))", nil},135 {"foo)", nil},136 {"foo))", nil},137 {"foo)))", nil},138 {"(foo", nil},139 {"((foo", nil},140 {"(((foo", nil},141 {"(foo))", nil},142 {"(((foo))", nil},143

github.com/sourcegraph/zoektinternal/e2e/scoring_test.go 2 matches | Go | №7

423 content: exampleCpp,424 query: &query.Substring{Content: true, Pattern: "FooClass"},425 language: "C++",
447 content: exampleCpp,448 query: &query.Substring{Content: true, Pattern: "FooStruct"},449 language: "C++",

github.com/sourcegraph/zoektlanguages/extensions_test.go 6 matches | Go | №8

89 for ext, language := range unsupportedByEnryExtensionToNameMap {90 filename := "foo" + ext91 languages, _ := getLanguagesByExtension(filename)
98 for ext, language := range overrideAmbiguousExtensionsMap {99 filename := "foo" + ext100 enryLangs := enry.GetLanguagesByExtension(filename, nil, nil)
111 for ext, language := range nonAmbiguousExtensionsCheck {112 filename := "foo" + ext113 languages, isLikelyBinaryFile := getLanguagesByExtension(filename)
121 for _, ext := range []string{".png", ".jpg", ".gif"} {122 filename := "foo" + ext123 _, isLikelyBinary := getLanguagesByExtension(filename)
131 for ext, overrideLang := range overrideAmbiguousExtensionsMap {132 filepath := "foo" + ext133 enryLangsForExt := enry.GetLanguagesByExtension(filepath, nil, nil)

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/merge_test.go 1 match | Go | №9

29 {"small.00000.zoekt", false},30 {"compound-foo.00000.zoekt", false},31 {"else", false},

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/backoff_test.go 13 matches | Go | №10

14 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))15 opts := IndexOptions{RepoID: 1, Name: "foo"}16
41 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))42 opts := IndexOptions{RepoID: 1, Name: "foo"}43
66 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))67 opts := IndexOptions{RepoID: 1, Name: "foo"}68
91 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))92 opts := IndexOptions{RepoID: 1, Name: "foo"}93
130 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))131 opts := IndexOptions{RepoID: 1, Name: "foo"}132

github.com/isker/neogroksrc/routes/(search-page)/chunk-renderer.test.ts 2 matches | TypeScript | №11

128 {129 text: '\t\t\t\tContent: []byte("foo"),',130 matchRanges: [],
465 "matchRanges": [],466 "text": " Content: []byte("foo"),",467 },

github.com/sourcegraph/zoektindex/file_category_test.go 5 matches | Go | №12

15 name: "test file",16 filename: "foo_test.go",17 content: []byte("package foo"),18 want: FileCategoryTest,
21 name: "vendor file",22 filename: "vendor/foo.go",23 content: []byte("package foo"),24 want: FileCategoryVendored,
27 name: "generated file",28 filename: "foo.go",29 content: []byte("// Code generated by protoc-gen-go. DO NOT EDIT.\n" +

github.com/sourcegraph/zoektlanguages/languages.go 1 match | Go | №13

143 //144 // 1. This method is not 100% foolproof, as it relies on conventions145 // around file paths which may or may not be followed.