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

Function NewRestTesterMultipleCollections

rest/utilities_testing.go:191–199  ·  view source on GitHub ↗

NewRestTester multiple collections a rest tester backed by a single database and any number of collections and the names of the keyspaces of collections created.

(tb testing.TB, restConfig *RestTesterConfig, numCollections int)

Source from the content-addressed store, hash-verified

189
190// NewRestTester multiple collections a rest tester backed by a single database and any number of collections and the names of the keyspaces of collections created.
191func NewRestTesterMultipleCollections(tb testing.TB, restConfig *RestTesterConfig, numCollections int) *RestTester {
192 if !base.TestsUseNamedCollections() {
193 tb.Skip("This test requires named collections and is running against a bucket type that does not support them")
194 }
195 if numCollections == 0 {
196 tb.Errorf("0 is not a valid number of collections to specify")
197 }
198 return newRestTester(tb, restConfig, useMultipleCollection, numCollections)
199}
200
201func (rt *RestTester) Bucket() base.Bucket {
202 if rt.TB() == nil {

Calls 3

TestsUseNamedCollectionsFunction · 0.92
newRestTesterFunction · 0.85
ErrorfMethod · 0.80