MCPcopy
hub / github.com/matryer/xbar / TestIsPluginEnabled

Function TestIsPluginEnabled

pkg/plugins/installed_plugins_test.go:42–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

40}
41
42func TestIsPluginEnabled(t *testing.T) {
43 is := is.New(t)
44
45 is.Equal(IsPluginEnabled("nope.sh"+disabledPluginExtension), false)
46 is.Equal(IsPluginEnabled("yep.sh"), true)
47
48}
49
50func TestSetEnabled(t *testing.T) {
51 const (

Callers

nothing calls this directly

Calls 1

IsPluginEnabledFunction · 0.85

Tested by

no test coverage detected