MCPcopy Index your code
hub / github.com/bytebase/bytebase / getTestPort

Function getTestPort

backend/tests/tests.go:140–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138)
139
140func getTestPort() int {
141 mu.Lock()
142 defer mu.Unlock()
143 p := nextPort
144 nextPort += 2
145 return p
146}
147
148// getTestDatabaseString returns a unique database name in external pg database server.
149func getTestDatabaseString() string {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected