MCPcopy Index your code
hub / github.com/google/codesearch / TestQuery

Function TestQuery

index/regexp_test.go:83–94  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

81}
82
83func TestQuery(t *testing.T) {
84 for _, tt := range queryTests {
85 re, err := syntax.Parse(tt.re, syntax.Perl)
86 if err != nil {
87 t.Fatal(err)
88 }
89 q := RegexpQuery(re).String()
90 if q != tt.q {
91 t.Errorf("RegexpQuery(%#q) = %#q, want %#q", tt.re, q, tt.q)
92 }
93 }
94}

Callers

nothing calls this directly

Calls 2

RegexpQueryFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…