(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…