MCPcopy Index your code
hub / github.com/docker/cli / TestListPluginCandidatesEmpty

Function TestListPluginCandidatesEmpty

cli-plugins/manager/manager_test.go:83–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

81}
82
83func TestListPluginCandidatesEmpty(t *testing.T) {
84 tmpDir := t.TempDir()
85 candidates := listPluginCandidates([]string{tmpDir, filepath.Join(tmpDir, "no-such-dir")})
86 assert.Assert(t, len(candidates) == 0)
87}
88
89// Regression test for https://github.com/docker/cli/issues/5643.
90// Check that inaccessible directories that come before accessible ones are ignored

Callers

nothing calls this directly

Calls 1

listPluginCandidatesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…