(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func 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 | |
| 171 | func TestGetPluginDirs(t *testing.T) { |
| 172 | cli := test.NewFakeCli(nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…