mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
fix coverage: check end-of-line at the end of debug msg
This commit is contained in:
parent
ee896ed9a0
commit
e7e37b9a7e
@ -39,7 +39,7 @@ func TestDebugPrint(t *testing.T) {
|
||||
SetMode(TestMode)
|
||||
debugPrint("DEBUG this!")
|
||||
SetMode(DebugMode)
|
||||
debugPrint("these are %d %s\n", 2, "error messages")
|
||||
debugPrint("these are %d %s", 2, "error messages")
|
||||
SetMode(TestMode)
|
||||
})
|
||||
assert.Equal(t, "[GIN-debug] these are 2 error messages\n", re)
|
||||
|
Loading…
x
Reference in New Issue
Block a user