This commit addresses several issues in the testing framework: - Corrected a malformed URL in the mock response data in `pkg/github/github.go`. - Fixed a bug in the mock HTTP client in `pkg/mocks/http.go` where the response body was being exhausted after the first read. The client now returns a deep copy of the response for each call. - Refactored the environment variable handling in `TDD/collect_commands_test.go` to use `t.Setenv`, ensuring proper cleanup after the test. |
||
|---|---|---|
| .. | ||
| github.go | ||
| release.go | ||