downloadPath extracts the path+query of the minted download_url so we can hit the test server (ignoring the configured public host).
(t *testing.T, raw string)
| 166 | // downloadPath extracts the path+query of the minted download_url so we can hit |
| 167 | // the test server (ignoring the configured public host). |
| 168 | func downloadPathFromURL(t *testing.T, raw string) string { |
| 169 | t.Helper() |
| 170 | u, err := url.Parse(raw) |
| 171 | if err != nil { |
| 172 | t.Fatal(err) |
| 173 | } |
| 174 | return u.Path + "?" + u.RawQuery |
| 175 | } |
| 176 | |
| 177 | func TestAttachment_DownloadRoute(t *testing.T) { |
| 178 | srv := attTestServer(t) |
no outgoing calls
no test coverage detected