(num int)
| 33 | } |
| 34 | |
| 35 | func textMessages(num int) [][]byte { |
| 36 | messages := make([][]byte, num) |
| 37 | for i := 0; i < num; i++ { |
| 38 | msg := fmt.Sprintf("planet: %d, country: %d, city: %d, street: %d", i, i, i, i) |
| 39 | messages[i] = []byte(msg) |
| 40 | } |
| 41 | return messages |
| 42 | } |
| 43 | |
| 44 | func BenchmarkWriteNoCompression(b *testing.B) { |
| 45 | w := ioutil.Discard |
no outgoing calls
no test coverage detected