Benchmark state checks with a full key manager.
(b *testing.B)
| 259 | |
| 260 | // Benchmark state checks with a full key manager. |
| 261 | func BenchmarkKeyMgr_FilledState(b *testing.B) { |
| 262 | mgr := NewKeyManager() |
| 263 | keyFillManager(mgr) |
| 264 | |
| 265 | b.ResetTimer() |
| 266 | for n := 0; n < b.N; n++ { |
| 267 | checkKeyConfigOptimal(b, mgr) |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | // Benchmark update with a clean manager and state checks. |
| 272 | func BenchmarkKeyMgr_CleanUpdate(b *testing.B) { |
nothing calls this directly
no test coverage detected