Compare commits

...

2 Commits

Author SHA1 Message Date
Andreas Deininger
a4f23c102f
Merge dc293d469c28354a6528a4d3df60a884b430da30 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d 2025-03-21 19:49:29 +08:00
Andreas Deininger
dc293d469c context_test.go: fix useless asserts 2024-12-13 22:45:07 +01:00

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{}