MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / TestEnabledFromConfig_LegacyAlias

Function TestEnabledFromConfig_LegacyAlias

internal/ui/plugins/loader_test.go:37–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestEnabledFromConfig_LegacyAlias(t *testing.T) {
38 cfg := &config.Config{}
39 cfg.SetDefaults()
40
41 cfg.Plugins.Enabled = []string{guestlist.LegacyPluginID}
42
43 plugins, missing := EnabledFromConfig(cfg)
44
45 require.Empty(t, missing)
46 require.Len(t, plugins, 1)
47 require.Equal(t, guestlist.PluginID, plugins[0].ID())
48}
49
50func TestAvailableIDs(t *testing.T) {
51 ids := AvailableIDs()

Callers

nothing calls this directly

Calls 3

SetDefaultsMethod · 0.95
EnabledFromConfigFunction · 0.85
IDMethod · 0.65

Tested by

no test coverage detected