Closed icepie closed 10 months ago
@icepie Can you please add unit test cases?
Ok! I have added d3026f9b3e574db015e63819fd0f72c8bf4b528c
Running tool: /home/icepie/.go/bin/go test -timeout 30s -run ^TestRequestDigestAuthWithBody$ github.com/go-resty/resty/v2
--- FAIL: TestRequestDigestAuthWithBody (0.00s)
/home/icepie/Projects/resty-fix/resty_test.go:690: Method: POST
/home/icepie/Projects/resty-fix/resty_test.go:691: Path: /dir/index.html
/home/icepie/Projects/resty-fix/resty_test.go:690: Method: POST
/home/icepie/Projects/resty-fix/resty_test.go:691: Path: /dir/index.html
/home/icepie/Projects/resty-fix/resty_test.go:828: Error occurred [Post "http://127.0.0.1:40125/dir/index.html": net/http: HTTP/1.x transport connection broken: http: ContentLength=41 with Body length 0]
/home/icepie/Projects/resty-fix/resty_test.go:842: Expected [200], got [0]
/home/icepie/Projects/resty-fix/request_test.go:740: Result Success: &{"" ""}
/home/icepie/Projects/resty-fix/resty_test.go:877: Response Status:
/home/icepie/Projects/resty-fix/resty_test.go:878: Response Time: 353.067µs
/home/icepie/Projects/resty-fix/resty_test.go:879: Response Headers: map[]
/home/icepie/Projects/resty-fix/resty_test.go:880: Response Cookies: []
/home/icepie/Projects/resty-fix/resty_test.go:881: Response Body:
FAIL
FAIL github.com/go-resty/resty/v2 0.002s
FAIL
Running tool: /home/icepie/.go/bin/go test -timeout 30s -run ^TestRequestDigestAuthWithBody$ github.com/go-resty/resty/v2
ok github.com/go-resty/resty/v2 (cached)
Attention: 2 lines
in your changes are missing coverage. Please review.
Comparison is base (
6242e6f
) 96.62% compared to head (d3026f9
) 96.51%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
729