()
| 31 | } |
| 32 | |
| 33 | func setupAPIForMultiinstanceTest() (*API, *conf.Configuration, error) { |
| 34 | cb := func(gc *conf.GlobalConfiguration, c *conf.Configuration, conn *storage.Connection) (uuid.UUID, error) { |
| 35 | gc.MultiInstanceMode = true |
| 36 | return uuid.Nil, nil |
| 37 | } |
| 38 | |
| 39 | return setupAPIForTestWithCallback(cb) |
| 40 | } |
| 41 | |
| 42 | func setupAPIForTestForInstance() (*API, *conf.Configuration, uuid.UUID, error) { |
| 43 | instanceID := uuid.Must(uuid.NewV4()) |
no test coverage detected
searching dependent graphs…