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

Function TestUseCouchbaseServer

base/util_testing.go:288–291  ·  view source on GitHub ↗

Check the whether tests are being run with SG_TEST_BACKING_STORE=Couchbase

()

Source from the content-addressed store, hash-verified

286
287// Check the whether tests are being run with SG_TEST_BACKING_STORE=Couchbase
288func TestUseCouchbaseServer() bool {
289 backingStore := os.Getenv(TestEnvSyncGatewayBackingStore)
290 return strings.EqualFold(backingStore, TestEnvBackingStoreCouchbase)
291}
292
293func TestUseWalrus() bool {
294 backingStore := os.Getenv(TestEnvSyncGatewayBackingStore)

Callers 5

TestServerUUIDFunction · 0.92
UnitTestUrlFunction · 0.85
TestsDisableGSIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected