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

Method initPlugins

backend/test/helper/client.go:281–293  ·  view source on GitHub ↗
(cfg *LocalClientConfig)

Source from the content-addressed store, hash-verified

279}
280
281func (d *DevlakeClient) initPlugins(cfg *LocalClientConfig) {
282 d.testCtx.Helper()
283 // default plugins
284 cfg.Plugins = append(cfg.Plugins, []plugin.PluginMeta{
285 org.Org{},
286 dora.Dora{},
287 refdiff.RefDiff{},
288 }...)
289 // register and init plugins
290 for _, p := range cfg.Plugins {
291 require.NoError(d.testCtx, plugin.RegisterPlugin(p.Name(), p))
292 }
293}
294
295func (d *DevlakeClient) prepareDB(cfg *LocalClientConfig) {
296 d.testCtx.Helper()

Callers 1

ConnectLocalServerFunction · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected