MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / BenchmarkToLogKey

Function BenchmarkToLogKey

base/log_keys_test.go:193–198  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

191}
192
193func BenchmarkToLogKey(b *testing.B) {
194 ctx := TestCtx(b)
195 for i := 0; i < b.N; i++ {
196 _ = ToLogKey(ctx, []string{"CRUD", "DCP", "Replicate"})
197 }
198}
199
200func BenchmarkEnabledLogKeys(b *testing.B) {
201 logKeys := logKeyMask(KeyCRUD, KeyDCP, KeyReplicate)

Callers

nothing calls this directly

Calls 2

TestCtxFunction · 0.85
ToLogKeyFunction · 0.85

Tested by

no test coverage detected