Benchmark values checks with a clean key manager.
(b *testing.B)
| 466 | |
| 467 | // Benchmark values checks with a clean key manager. |
| 468 | func BenchmarkInputMgr_AxisCleanState(b *testing.B) { |
| 469 | Input = NewInputManager() |
| 470 | |
| 471 | for _, cfg := range axSimpleCfg { |
| 472 | Input.RegisterAxis(cfg.Name, cfg.Pairs[0], cfg.Pairs[1]) |
| 473 | } |
| 474 | |
| 475 | b.ResetTimer() |
| 476 | for n := 0; n < b.N; n++ { |
| 477 | checkAxisConfigValue(b) |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | // Benchmark values checks with a full key manager. |
| 482 | func BenchmarkInputMgr_AxisFilledState(b *testing.B) { |
nothing calls this directly
no test coverage detected