(b *testing.B)
| 131 | } |
| 132 | |
| 133 | func BenchmarkProcessReadFileSingle1000Bytes(b *testing.B) { |
| 134 | b.StopTimer() |
| 135 | Hash = append(Hash, "all") |
| 136 | |
| 137 | content := "" |
| 138 | for i := 0; i < 1000; i++ { |
| 139 | content += "1" |
| 140 | } |
| 141 | |
| 142 | data := []byte(content) |
| 143 | var count int64 |
| 144 | |
| 145 | b.StartTimer() |
| 146 | |
| 147 | for i := 0; i < b.N; i++ { |
| 148 | res, _ := processReadFile("filenane", &data) |
| 149 | count += res.Bytes |
| 150 | } |
| 151 | b.Log(count) |
| 152 | } |
nothing calls this directly
no test coverage detected