Benchmark update with a clean manager and state checks.
(b *testing.B)
| 270 | |
| 271 | // Benchmark update with a clean manager and state checks. |
| 272 | func BenchmarkKeyMgr_CleanUpdate(b *testing.B) { |
| 273 | mgr := NewKeyManager() |
| 274 | |
| 275 | b.ResetTimer() |
| 276 | for n := 0; n < b.N; n++ { |
| 277 | mgr.update() |
| 278 | checkKeyConfigOptimal(b, mgr) |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | // Benchmark update with a full key manager and state checks. |
| 283 | func BenchmarkKeyMgr_FilledUpdate(b *testing.B) { |
nothing calls this directly
no test coverage detected