MCPcopy Create free account
hub / github.com/netlify/gotrue / setupAPIForTest

Function setupAPIForTest

api/api_test.go:29–31  ·  view source on GitHub ↗

setupAPIForTest creates a new API to run tests with. Using this function allows us to keep track of the database connection and cleaning up data between tests.

()

Source from the content-addressed store, hash-verified

27// Using this function allows us to keep track of the database connection
28// and cleaning up data between tests.
29func setupAPIForTest() (*API, *conf.Configuration, error) {
30 return setupAPIForTestWithCallback(nil)
31}
32
33func setupAPIForMultiinstanceTest() (*API, *conf.Configuration, error) {
34 cb := func(gc *conf.GlobalConfiguration, c *conf.Configuration, conn *storage.Connection) (uuid.UUID, error) {

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…