(t *testing.T)
| 83 | } |
| 84 | |
| 85 | func TestGetQuerySnippetGETBody(t *testing.T) { |
| 86 | q := "SELECT column FROM table" |
| 87 | body := bytes.NewBufferString(q) |
| 88 | req, err := http.NewRequest("GET", "", body) |
| 89 | checkErr(t, err) |
| 90 | query := getQuerySnippet(req) |
| 91 | if query != q { |
| 92 | t.Fatalf("got: %q; expected: %q", query, q) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func TestGetQuerySnippetGETBothQueryAndBody(t *testing.T) { |
| 97 | queryPart := "SELECT column" |
nothing calls this directly
no test coverage detected