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

Function IsDevMode

base/devmode.go:20–22  ·  view source on GitHub ↗

IsDevMode returns true when compiled with the `cb_sg_devmode` build tag

()

Source from the content-addressed store, hash-verified

18
19// IsDevMode returns true when compiled with the `cb_sg_devmode` build tag
20func IsDevMode() bool {
21 return cbSGDevModeBuildTagSet
22}
23
24// AssertfCtx logs an error message and continues execution, or when compiled with the `cb_sg_devmode` build tag panics for better dev-time visibility.
25// The SG test harness will ensure AssertionFailCount is zero at the end of tests, even without devmode enabled.

Callers 2

TestShouldCheckAdminRBACFunction · 0.92
AuditFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestShouldCheckAdminRBACFunction · 0.74