Skip to content

test(request): cover request helpers#220

Open
pkurunner wants to merge 1 commit into
ccfos:mainfrom
pkurunner:codex/test-request-219
Open

test(request): cover request helpers#220
pkurunner wants to merge 1 commit into
ccfos:mainfrom
pkurunner:codex/test-request-219

Conversation

@pkurunner

Copy link
Copy Markdown
Contributor

Summary

  • add tests for request construction and header cloning
  • cover JSON body encoding and error response parsing helpers

Testing

  • gofmt -w internal/request/request_test.go
  • GOOS=linux GOARCH=amd64 go test -c ./internal/request
  • Not run: go test ./internal/request on Windows is blocked by Unix-only socket control APIs in
    awhttp.go.

Fixes #219

Signed-off-by: yeyangyi <2501210756@stu.pku.edu.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[测试]: 为 internal/request 补充请求和错误响应测试

1 participant