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

Function TestServerUUID

db/database_test.go:4344–4353  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

4342}
4343
4344func TestServerUUID(t *testing.T) {
4345 db, ctx := setupTestDB(t)
4346 defer db.Close(ctx)
4347
4348 if base.TestUseCouchbaseServer() {
4349 require.Len(t, db.ServerUUID, 32) // no dashes in UUID
4350 } else {
4351 require.Len(t, db.ServerUUID, 0) // no dashes in UUID
4352 }
4353}
4354
4355func waitAndAssertConditionWithOptions(t *testing.T, fn func() bool, retryCount, msSleepTime int, failureMsgAndArgs ...interface{}) {
4356 for i := 0; i <= retryCount; i++ {

Callers

nothing calls this directly

Calls 4

TestUseCouchbaseServerFunction · 0.92
setupTestDBFunction · 0.85
CloseMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected