mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 20:22:20 +08:00
test: improve debug.go and context.go test coverage
This PR improves test coverage for debug.go and context.go files: ### debug.go improvements: - TestDebugPrintWARNINGDefaultLowGoVersion: covers Go version warning branch - TestDebugPrintWithCustomFunc: covers custom DebugPrintFunc branch ### context.go improvements: - TestContextGetRawDataNilBody: covers Request.Body nil case - TestContextSetCookieData SameSiteDefaultMode: covers SameSiteDefaultMode branch - Additional test cases for FormFile, SaveUploadedFile, and other functions ### Coverage improvements: - Overall project coverage: 98.1% - gin main package coverage: 99.6% - binding package coverage: 99.8%
This commit is contained in:
parent
c57a166902
commit
2cb7b0a03d