Merge dc293d469c28354a6528a4d3df60a884b430da30 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d

This commit is contained in:
Andreas Deininger 2025-03-21 19:49:29 +08:00 committed by GitHub
commit a4f23c102f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -885,10 +885,10 @@ func TestContextGetCookie(t *testing.T) {
}
func TestContextBodyAllowedForStatus(t *testing.T) {
assert.False(t, false, bodyAllowedForStatus(http.StatusProcessing))
assert.False(t, false, bodyAllowedForStatus(http.StatusNoContent))
assert.False(t, false, bodyAllowedForStatus(http.StatusNotModified))
assert.True(t, true, bodyAllowedForStatus(http.StatusInternalServerError))
assert.False(t, bodyAllowedForStatus(http.StatusProcessing))
assert.False(t, bodyAllowedForStatus(http.StatusNoContent))
assert.False(t, bodyAllowedForStatus(http.StatusNotModified))
assert.True(t, bodyAllowedForStatus(http.StatusInternalServerError))
}
type TestRender struct{}