MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / downloadPathFromURL

Function downloadPathFromURL

internal/httpapi/attachment_endpoint_test.go:168–175  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

166// downloadPath extracts the path+query of the minted download_url so we can hit
167// the test server (ignoring the configured public host).
168func 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
177func TestAttachment_DownloadRoute(t *testing.T) {
178 srv := attTestServer(t)

Calls

no outgoing calls

Tested by

no test coverage detected