(b *testing.B)
| 980 | } |
| 981 | |
| 982 | func BenchmarkAlterTableStatementPool(b *testing.B) { |
| 983 | b.Run("GetPutAlterTableStatement", func(b *testing.B) { |
| 984 | b.ReportAllocs() |
| 985 | for i := 0; i < b.N; i++ { |
| 986 | stmt := GetAlterTableStatement() |
| 987 | stmt.Table = "users" |
| 988 | stmt.Actions = append(stmt.Actions, AlterTableAction{ |
| 989 | Type: "ADD COLUMN", |
| 990 | ColumnName: "email", |
| 991 | }) |
| 992 | PutAlterTableStatement(stmt) |
| 993 | } |
| 994 | }) |
| 995 | } |
| 996 | |
| 997 | func BenchmarkCreateIndexStatementPool(b *testing.B) { |
| 998 | b.Run("GetPutCreateIndexStatement", func(b *testing.B) { |
nothing calls this directly
no test coverage detected