MCPcopy Create free account
hub / github.com/rclone/rclone / TestOpenOptionAddHTTPHeaders

Function TestOpenOptionAddHTTPHeaders

fs/open_options_test.go:280–290  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

278}
279
280func TestOpenOptionAddHTTPHeaders(t *testing.T) {
281 headers := http.Header{}
282 want := http.Header{
283 "A": {"1"},
284 "Range": {"bytes=1-10"},
285 "B": {"2"},
286 }
287 OpenOptionAddHTTPHeaders(headers, testOpenOptions)
288 assert.Equal(t, want, headers)
289
290}

Callers

nothing calls this directly

Calls 2

OpenOptionAddHTTPHeadersFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…