(data []byte)
| 597 | } |
| 598 | |
| 599 | func (r *responseRecorder) Write(data []byte) (int, error) { |
| 600 | if r.statusCode == 0 { |
| 601 | r.statusCode = http.StatusOK |
| 602 | } |
| 603 | return r.body.Write(data) |
| 604 | } |
| 605 | |
| 606 | func (r *responseRecorder) WriteHeader(statusCode int) { |
| 607 | r.statusCode = statusCode |
no outgoing calls
no test coverage detected