MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / enabledPluginConfigs

Function enabledPluginConfigs

internal/pluginhost/host_test.go:22–29  ·  view source on GitHub ↗
(ids ...string)

Source from the content-addressed store, hash-verified

20)
21
22func enabledPluginConfigs(ids ...string) map[string]config.PluginInstanceConfig {
23 enabled := true
24 configs := make(map[string]config.PluginInstanceConfig, len(ids))
25 for _, id := range ids {
26 configs[id] = config.PluginInstanceConfig{Enabled: &enabled}
27 }
28 return configs
29}
30
31func TestHostApplyConfig_DisabledGlobalSkipsSnapshot(t *testing.T) {
32 loader := newTestSymbolLoader()

Calls

no outgoing calls

Tested by

no test coverage detected