MCPcopy Index your code
hub / github.com/helm/helm / TestPluginVerifyCmd_DirectoryNotSupported

Function TestPluginVerifyCmd_DirectoryNotSupported

pkg/cmd/plugin_verify_test.go:120–137  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

118}
119
120func TestPluginVerifyCmd_DirectoryNotSupported(t *testing.T) {
121 ensure.HelmHome(t)
122
123 // Create a plugin directory
124 pluginDir := createTestPluginDir(t)
125
126 out := &bytes.Buffer{}
127 cmd := newPluginVerifyCmd(out)
128 cmd.SetArgs([]string{pluginDir})
129
130 err := cmd.Execute()
131 if err == nil {
132 t.Error("expected error when verifying directory")
133 }
134 if !strings.Contains(err.Error(), "directory verification not supported") {
135 t.Errorf("expected 'directory verification not supported' error, got: %v", err)
136 }
137}
138
139func TestPluginVerifyCmd_KeyringFlag(t *testing.T) {
140 ensure.HelmHome(t)

Callers

nothing calls this directly

Calls 5

HelmHomeFunction · 0.92
newPluginVerifyCmdFunction · 0.85
ContainsMethod · 0.80
createTestPluginDirFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…