From 2cb7b0a03d9115290d1fe08617ae3b868ebbfef6 Mon Sep 17 00:00:00 2001 From: caplost Date: Tue, 29 Jul 2025 11:04:54 +0800 Subject: [PATCH] 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%