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:
caplost 2025-07-29 11:04:54 +08:00
parent c57a166902
commit 2cb7b0a03d

Diff Content Not Available