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

Method SetTestCallbacks

rest/database_init_manager.go:169–172  ·  view source on GitHub ↗

Intended for test usage. Updates to callback function aren't synchronized

(collectionCallback CollectionCallbackFunc, databaseComplete func(dbName string))

Source from the content-addressed store, hash-verified

167
168// Intended for test usage. Updates to callback function aren't synchronized
169func (m *DatabaseInitManager) SetTestCallbacks(collectionCallback CollectionCallbackFunc, databaseComplete func(dbName string)) {
170 m.testCollectionStatusUpdateCallback = collectionCallback
171 m.testDatabaseCompleteCallback = databaseComplete
172}
173
174func (m *DatabaseInitManager) Cancel(dbName string, reason string) {
175 m.workersLock.Lock()

Callers 6

TestAsyncInitWithResyncFunction · 0.80
TestAsyncOnlineOfflineFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestAsyncInitWithResyncFunction · 0.64
TestAsyncOnlineOfflineFunction · 0.64