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

Function NewRestTesterPersistentConfig

rest/utilities_testing.go:161–165  ·  view source on GitHub ↗

NewRestTesterPersistentConfig returns a rest tester with persistent config setup and a single database. A convenience function for NewRestTester.

(tb testing.TB)

Source from the content-addressed store, hash-verified

159
160// NewRestTesterPersistentConfig returns a rest tester with persistent config setup and a single database. A convenience function for NewRestTester.
161func NewRestTesterPersistentConfig(tb testing.TB) *RestTester {
162 rt := NewRestTesterPersistentConfigNoDB(tb)
163 RequireStatus(tb, rt.CreateDatabase("db", rt.NewDbConfig()), http.StatusCreated)
164 return rt
165}
166
167// newRestTester creates the underlying rest testers, use public functions.
168func newRestTester(tb testing.TB, restConfig *RestTesterConfig, collectionConfig collectionConfiguration, numCollections int) *RestTester {

Calls 4

RequireStatusFunction · 0.85
CreateDatabaseMethod · 0.80
NewDbConfigMethod · 0.80