Skip to content
Myr

context_test.go: fix useless asserts (#4115)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andreas Deininger · committed by GitHub · parent d00e6a5 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:context_test.go+4 added-4 removed
883 unmodified lines
884 require.Error(t, err)885}886887func TestContextBodyAllowedForStatus(t *testing.T) {888 assert.False(t, false, bodyAllowedForStatus(http.StatusProcessing))889 assert.False(t, false, bodyAllowedForStatus(http.StatusNoContent))890 assert.False(t, false, bodyAllowedForStatus(http.StatusNotModified))891 assert.True(t, true, bodyAllowedForStatus(http.StatusInternalServerError))888 assert.False(t, bodyAllowedForStatus(http.StatusProcessing))889 assert.False(t, bodyAllowedForStatus(http.StatusNoContent))890 assert.False(t, bodyAllowedForStatus(http.StatusNotModified))891 assert.True(t, bodyAllowedForStatus(http.StatusInternalServerError))892}893894type TestRender struct{}895
2356 unmodified lines