(b *testing.B)
| 314 | } |
| 315 | |
| 316 | func BenchmarkMemoryLimitCheck(b *testing.B) { |
| 317 | buf := createNewBuffer() |
| 318 | buf.setMemoryLimit(1024 * 1024 * 1024) // 1GB |
| 319 | |
| 320 | row := []string{"test1", "test2", "test3"} |
| 321 | |
| 322 | b.ResetTimer() |
| 323 | for i := 0; i < b.N; i++ { |
| 324 | _ = buf.contAppendSli(row, false) |
| 325 | } |
| 326 | } |
nothing calls this directly
no test coverage detected