zoekt: 28 files / 244 matches / 1.35ms neogrok: 20 files / 122 matches
github.com/sourcegraph/zoektinternal/e2e/examples/example.cc 13 matches | C++ | №1
github.com/sourcegraph/zoektweb/templates.go 9 matches | Go | №2
168
<dt><a href="search?q=path+-file:java">path -file:java</a></dt><dd>search for the word "path" excluding files whose name contains "java"</dd>
169 <dt><a href="search?q=foo.*bar">foo.*bar</a></dt><dd>search for the regular expression "foo.*bar"</dd>
170 <dt><a href="search?q=-%28Path File%29 Stream">-(Path File) Stream</a></dt><dd>search "Stream", but exclude files containing both "Path" and "File"</dd>
github.com/sourcegraph/zoektdoc/query_syntax.md 6 matches | Markdown | №3
28
| `archived:` | `a:` | `yes` or `no` | Filters archived repositories. | `archived:yes` |
29 | `case:` | `c:` | `yes`, `no`, or `auto` | Matches case-sensitive or insensitive text. | `case:yes content:"Foo"` |
30 | `content:` | `c:` | Text (string or regex) | Searches content of files. | `content:"search term"` |
github.com/sourcegraph/zoektinternal/e2e/examples/example.py 2 matches | Python | №4
github.com/sourcegraph/zoektinternal/e2e/examples/example.scala 3 matches | Scala | №5
github.com/sourcegraph/zoektapi_test.go 3 matches | Go | №6
github.com/sourcegraph/zoektindex/index_test.go 9 matches | Go | №7
github.com/sourcegraph/zoektindex/ctags_test.go 5 matches | Go | №8
25
func TestTagsToSections(t *testing.T) {
26 c := []byte("package foo\nfunc bar(j int) {}\n//bla")
27 // ----------01234567890 1234567890123456789 012345
46
func TestTagsToSectionsMultiple(t *testing.T) {
47 c := []byte("class Foo { int x; int b; }")
48 // ----------012345678901234567890123456
github.com/sourcegraph/zoektquery/query_test.go 8 matches | Go | №9
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}})
github.com/sourcegraph/zoektquery/parse_test.go 1 match | Go | №10
github.com/sourcegraph/zoektquery/regexp_test.go 2 matches | Go | №11
github.com/sourcegraph/zoektignore/ignore_test.go 8 matches | Go | №12
github.com/sourcegraph/zoektindex/matchtree_test.go 8 matches | Go | №13
167
}{
168 {query: "^foo", skip: false},
169 {query: "foo", skip: true},
170 {query: "thread|needle|haystack", skip: true},
203
func TestWordSearchSkipRegexpTree(t *testing.T) {
204 qStr := "\\bfoo\\b case:yes"
205 q, err := query.Parse(qStr)
github.com/sourcegraph/zoektquery/query_proto_test.go 5 matches | Go | №14
github.com/sourcegraph/zoektinternal/json/json_test.go 1 match | Go | №15
github.com/sourcegraph/zoektinternal/e2e/scoring_test.go 2 matches | Go | №16
github.com/sourcegraph/zoektinternal/e2e/e2e_index_test.go 23 matches | Go | №17
614
var (
615 fooAtMain = index.Document{Name: "foo.go", Branches: []string{"main"}, Content: []byte("common foo-main-v1")}
616 fooAtMainV2 = index.Document{Name: "foo.go", Branches: []string{"main"}, Content: []byte("common foo-main-v2")}
617
618 fooAtMainAndRelease = index.Document{Name: "foo.go", Branches: []string{"main", "release"}, Content: []byte("common foo-main-and-release")}
619