Benchmark sub-optimal state checks
(b *testing.B)
| 263 | |
| 264 | // Benchmark sub-optimal state checks |
| 265 | func BenchmarkInputMgr_ButtonFilledState(b *testing.B) { |
| 266 | Input = NewInputManager() |
| 267 | keyFillManager(Input.keys) |
| 268 | |
| 269 | for _, cfg := range btnSimpleCfg { |
| 270 | Input.RegisterButton(cfg.Name, cfg.Triggers[0], cfg.Triggers[1]) |
| 271 | } |
| 272 | |
| 273 | b.ResetTimer() |
| 274 | for n := 0; n < b.N; n++ { |
| 275 | checkBtnConfigOptimal(b) |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | // Disabled but around when needed |
| 280 |
nothing calls this directly
no test coverage detected