mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-13 00:59:29 +08:00
Compare commits
2 Commits
9ae31f222d
...
78f4c57b64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78f4c57b64 | ||
|
|
4ea7d51dea |
@ -84,6 +84,10 @@ func TestResponseWriterWriteHeadersNow(t *testing.T) {
|
||||
writer.size = 10
|
||||
w.WriteHeaderNow()
|
||||
assert.Equal(t, 10, w.Size())
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
assert.Equal(t, http.StatusMultipleChoices, w.Status())
|
||||
assert.Equal(t, http.StatusMultipleChoices, testWriter.Code)
|
||||
}
|
||||
|
||||
func TestResponseWriterWrite(t *testing.T) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user