(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestGetQuerySnippetGET(t *testing.T) { |
| 73 | req, err := http.NewRequest("GET", "", nil) |
| 74 | checkErr(t, err) |
| 75 | params := make(url.Values) |
| 76 | q := "SELECT column FROM table" |
| 77 | params.Set("query", q) |
| 78 | req.URL.RawQuery = params.Encode() |
| 79 | query := getQuerySnippet(req) |
| 80 | if query != q { |
| 81 | t.Fatalf("got: %q; expected: %q", query, q) |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | func TestGetQuerySnippetGETBody(t *testing.T) { |
| 86 | q := "SELECT column FROM table" |
nothing calls this directly
no test coverage detected