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

Function TestDetectDuplicates

internal/plugin/loader_test.go:193–205  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

191}
192
193func TestDetectDuplicates(t *testing.T) {
194 plugs := []Plugin{
195 mockSubprocessCLIPlugin(t, "foo"),
196 mockSubprocessCLIPlugin(t, "bar"),
197 }
198 if err := detectDuplicates(plugs); err != nil {
199 t.Error("no duplicates in the first set")
200 }
201 plugs = append(plugs, mockSubprocessCLIPlugin(t, "foo"))
202 if err := detectDuplicates(plugs); err == nil {
203 t.Error("duplicates in the second set")
204 }
205}
206
207func TestLoadAllDir_Empty(t *testing.T) {
208 emptyDir := t.TempDir()

Callers

nothing calls this directly

Calls 3

mockSubprocessCLIPluginFunction · 0.85
detectDuplicatesFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…