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

Function NewRestTesterDefaultCollection

rest/utilities_testing.go:186–188  ·  view source on GitHub ↗

NewRestTester returns a rest tester backed by a single database and a single default collection.

(tb testing.TB, restConfig *RestTesterConfig)

Source from the content-addressed store, hash-verified

184
185// NewRestTester returns a rest tester backed by a single database and a single default collection.
186func NewRestTesterDefaultCollection(tb testing.TB, restConfig *RestTesterConfig) *RestTester {
187 return newRestTester(tb, restConfig, useSingleCollectionDefaultOnly, 1)
188}
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 {

Calls 1

newRestTesterFunction · 0.85