(b *testing.B)
| 77 | } |
| 78 | |
| 79 | func BenchmarkEtcdGet(b *testing.B) { |
| 80 | kon.SetStorage(NewEtcd(nil, kon.Kite.Log)) |
| 81 | |
| 82 | query := &protocol.KontrolQuery{ |
| 83 | ID: "b9cc3baf-4f03-47d0-5a62-7de2e9f22476", |
| 84 | } |
| 85 | |
| 86 | b.ResetTimer() |
| 87 | |
| 88 | for i := 0; i < b.N; i++ { |
| 89 | kon.storage.Get(query) |
| 90 | } |
| 91 | } |
nothing calls this directly
no test coverage detected