Benchmark update with a full key manager and state checks.
(b *testing.B)
| 281 | |
| 282 | // Benchmark update with a full key manager and state checks. |
| 283 | func BenchmarkKeyMgr_FilledUpdate(b *testing.B) { |
| 284 | mgr := NewKeyManager() |
| 285 | keyFillManager(mgr) |
| 286 | |
| 287 | b.ResetTimer() |
| 288 | for n := 0; n < b.N; n++ { |
| 289 | mgr.update() |
| 290 | checkKeyConfigOptimal(b, mgr) |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | // Slow way to check key state, checks and store them externaly. |
| 295 | func checkKeyConfigSubOptimal(b *testing.B, mgr *KeyManager) { |
nothing calls this directly
no test coverage detected