(w http.ResponseWriter, req *http.Request)
| 170 | } |
| 171 | |
| 172 | func (t serveSpaces) ServeHTTP(w http.ResponseWriter, req *http.Request) { |
| 173 | kb := bytes.Repeat([]byte{' '}, 1024) |
| 174 | for i := 0; i < t.sizeKB; i++ { |
| 175 | w.Write(kb) |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | func BenchmarkClient(b *testing.B) { |
| 180 | b.ReportAllocs() |
no test coverage detected