Benchmark values checks with a full key manager.
(b *testing.B)
| 480 | |
| 481 | // Benchmark values checks with a full key manager. |
| 482 | func BenchmarkInputMgr_AxisFilledState(b *testing.B) { |
| 483 | Input = NewInputManager() |
| 484 | keyFillManager(Input.keys) |
| 485 | |
| 486 | for _, cfg := range axSimpleCfg { |
| 487 | Input.RegisterAxis(cfg.Name, cfg.Pairs[0], cfg.Pairs[1]) |
| 488 | } |
| 489 | |
| 490 | b.ResetTimer() |
| 491 | for n := 0; n < b.N; n++ { |
| 492 | checkAxisConfigValue(b) |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | // Disabled but around when needed |
| 497 |
nothing calls this directly
no test coverage detected