| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Resolve a TODO at source_test.go to verify that custom HTTP request headers specified via spec.request.headers are actually forwarded on the wire. The mock's DoFunc now iterates over tt.spec.Request.Headers and fails the test if the header value on the outgoing request does not match the spec. Two new table-driven test cases are added: - "Normal case with single request header" (Authorization) - "Normal case with multiple request headers" (Authorization + X-Custom-Header)
|
Hi @olblak, I am new to Go and open source development in general. |
Sorry, something went wrong.
|
Hi @olblak, |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Resolves the // TODO: check headers comment in source_test.go:140.
The mock's DoFunc now iterates over tt.spec.Request.Headers and
returns an error if any header on the outgoing request doesn't match
the spec — ensuring headers set via spec.request.headers are actually
forwarded on the wire.
Two new table-driven test cases added:
Test plan