Benchmark state checks with a clean manager.
(b *testing.B)
| 249 | |
| 250 | // Benchmark state checks with a clean manager. |
| 251 | func BenchmarkKeyMgr_CleanState(b *testing.B) { |
| 252 | mgr := NewKeyManager() |
| 253 | |
| 254 | b.ResetTimer() |
| 255 | for n := 0; n < b.N; n++ { |
| 256 | checkKeyConfigOptimal(b, mgr) |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | // Benchmark state checks with a full key manager. |
| 261 | func BenchmarkKeyMgr_FilledState(b *testing.B) { |
nothing calls this directly
no test coverage detected