Benchmark sub-optimal state checks on a filled key manager.
(b *testing.B)
| 313 | |
| 314 | // Benchmark sub-optimal state checks on a filled key manager. |
| 315 | func BenchmarkKeyMgr_FilledSubOptimal(b *testing.B) { |
| 316 | mgr := NewKeyManager() |
| 317 | keyFillManager(mgr) |
| 318 | |
| 319 | b.ResetTimer() |
| 320 | for n := 0; n < b.N; n++ { |
| 321 | checkKeyConfigSubOptimal(b, mgr) |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | // Utility function that fills the KeyManager with key states. |
| 326 | func keyFillManager(mgr *KeyManager) { |
nothing calls this directly
no test coverage detected