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

Function TestErrPluginNotFound

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

Source from the content-addressed store, hash-verified

161}
162
163func TestErrPluginNotFound(t *testing.T) {
164 var err error = errPluginNotFound("test")
165 err.(errPluginNotFound).NotFound()
166 assert.Error(t, err, "Error: No such CLI plugin: test")
167 assert.Assert(t, errdefs.IsNotFound(err))
168 assert.Assert(t, !errdefs.IsNotFound(nil))
169}
170
171func TestGetPluginDirs(t *testing.T) {
172 cli := test.NewFakeCli(nil)

Callers

nothing calls this directly

Calls 3

errPluginNotFoundTypeAlias · 0.85
NotFoundMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…