(t *testing.T)
| 113 | } |
| 114 | |
| 115 | func TestGetQuerySnippetPOST(t *testing.T) { |
| 116 | q := "SELECT column FROM table" |
| 117 | body := bytes.NewBufferString(q) |
| 118 | req, err := http.NewRequest("POST", "", body) |
| 119 | checkErr(t, err) |
| 120 | query := getQuerySnippet(req) |
| 121 | if query != q { |
| 122 | t.Fatalf("got: %q; expected: %q", query, q) |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | func TestGetQuerySnippetGzipped(t *testing.T) { |
| 127 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected