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

Function mustGetServerAddr

rest/utilities_testing_bootstrap.go:109–113  ·  view source on GitHub ↗
(t *testing.T, sc *ServerContext, s serverType)

Source from the content-addressed store, hash-verified

107}
108
109func mustGetServerAddr(t *testing.T, sc *ServerContext, s serverType) string {
110 addr, err := sc.getServerAddr(s)
111 require.NoError(t, err, "Server %s not found in server context", s)
112 return addr
113}
114
115func doBootstrapAdminRequest(t *testing.T, sc *ServerContext, method, path, body string, headers map[string]string) boostrapResponse {
116 host := "http://" + mustGetServerAddr(t, sc, adminServer)

Callers 4

doBootstrapAdminRequestFunction · 0.85
doBootstrapRequestFunction · 0.85
TestPutDBConfigOIDCFunction · 0.85

Calls 1

getServerAddrMethod · 0.45

Tested by 2

TestPutDBConfigOIDCFunction · 0.68