(r *http.Request)
| 586 | } |
| 587 | |
| 588 | func (api *API) formatQuery(r *http.Request) (result apiFuncResult) { |
| 589 | expr, err := api.parser.ParseExpr(r.FormValue("query")) |
| 590 | if err != nil { |
| 591 | return invalidParamError(err, "query") |
| 592 | } |
| 593 | |
| 594 | return apiFuncResult{expr.Pretty(0), nil, nil, nil} |
| 595 | } |
| 596 | |
| 597 | func (api *API) parseQuery(r *http.Request) apiFuncResult { |
| 598 | expr, err := api.parser.ParseExpr(r.FormValue("query")) |
nothing calls this directly
no test coverage detected