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.
()
| 27 | // Using this function allows us to keep track of the database connection |
| 28 | // and cleaning up data between tests. |
| 29 | func setupAPIForTest() (*API, *conf.Configuration, error) { |
| 30 | return setupAPIForTestWithCallback(nil) |
| 31 | } |
| 32 | |
| 33 | func setupAPIForMultiinstanceTest() (*API, *conf.Configuration, error) { |
| 34 | cb := func(gc *conf.GlobalConfiguration, c *conf.Configuration, conn *storage.Connection) (uuid.UUID, error) { |
no test coverage detected
searching dependent graphs…