Benchmark sub-optimal state checks
(b *testing.B)
| 249 | |
| 250 | // Benchmark sub-optimal state checks |
| 251 | func BenchmarkInputMgr_ButtonCleanState(b *testing.B) { |
| 252 | Input = NewInputManager() |
| 253 | |
| 254 | for _, cfg := range btnSimpleCfg { |
| 255 | Input.RegisterButton(cfg.Name, cfg.Triggers[0], cfg.Triggers[1]) |
| 256 | } |
| 257 | |
| 258 | b.ResetTimer() |
| 259 | for n := 0; n < b.N; n++ { |
| 260 | checkBtnConfigOptimal(b) |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | // Benchmark sub-optimal state checks |
| 265 | func BenchmarkInputMgr_ButtonFilledState(b *testing.B) { |
nothing calls this directly
no test coverage detected