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

Function BenchmarkLogKeyEnabled

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

Source from the content-addressed store, hash-verified

163}
164
165func BenchmarkLogKeyEnabled(b *testing.B) {
166 logKeys := logKeyMask(KeyCRUD, KeyDCP, KeyReplicate)
167 benchmarkLogKeyEnabled(b, "Wildcard", KeyCache, logKeyMask(KeyAll))
168 benchmarkLogKeyEnabled(b, "Hit", KeyDCP, logKeys)
169 benchmarkLogKeyEnabled(b, "Miss", KeyCache, logKeys)
170}
171
172func BenchmarkToggleLogKeys(b *testing.B) {
173 b.Run("Enable", func(bn *testing.B) {

Callers

nothing calls this directly

Calls 2

logKeyMaskFunction · 0.85
benchmarkLogKeyEnabledFunction · 0.85

Tested by

no test coverage detected