MCPcopy
hub / github.com/apache/devlake / StartDevLakeServer

Function StartDevLakeServer

backend/test/helper/client_factory.go:27–37  ·  view source on GitHub ↗

Creates a new in-memory DevLake server with default settings and returns a client to it

(t *testing.T, loadedGoPlugins []plugin.PluginMeta)

Source from the content-addressed store, hash-verified

25
26// Creates a new in-memory DevLake server with default settings and returns a client to it
27func StartDevLakeServer(t *testing.T, loadedGoPlugins []plugin.PluginMeta) *DevlakeClient {
28 client := ConnectLocalServer(t, &LocalClientConfig{
29 ServerPort: 8089,
30 DbURL: config.GetConfig().GetString("E2E_DB_URL"),
31 CreateServer: true,
32 DropDb: false,
33 TruncateDb: true,
34 Plugins: loadedGoPlugins,
35 })
36 return client
37}
38
39// Connect to an existing DevLake server with default config. Tables are truncated. Useful for troubleshooting outside the IDE.
40func ConnectDevLakeServer(t *testing.T) *DevlakeClient {

Callers

nothing calls this directly

Calls 3

GetStringMethod · 0.80
ConnectLocalServerFunction · 0.70
GetConfigMethod · 0.65

Tested by

no test coverage detected