(b *testing.B)
| 1014 | } |
| 1015 | |
| 1016 | func BenchmarkDropStatementPool(b *testing.B) { |
| 1017 | b.Run("GetPutDropStatement", func(b *testing.B) { |
| 1018 | b.ReportAllocs() |
| 1019 | for i := 0; i < b.N; i++ { |
| 1020 | stmt := GetDropStatement() |
| 1021 | stmt.ObjectType = "TABLE" |
| 1022 | stmt.IfExists = true |
| 1023 | stmt.Names = append(stmt.Names, "users") |
| 1024 | PutDropStatement(stmt) |
| 1025 | } |
| 1026 | }) |
| 1027 | } |
| 1028 | |
| 1029 | func BenchmarkTruncateStatementPool(b *testing.B) { |
| 1030 | b.Run("GetPutTruncateStatement", func(b *testing.B) { |
nothing calls this directly
no test coverage detected