MCPcopy Index your code
hub / github.com/docker/docker-agent / TestClassify_ExecNotFound

Function TestClassify_ExecNotFound

pkg/tools/lifecycle/classify_test.go:23–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestClassify_ExecNotFound(t *testing.T) {
24 t.Parallel()
25 wrapped := fmt.Errorf("start command: %w", exec.ErrNotFound)
26 got := lifecycle.Classify(wrapped)
27 assert.Check(t, errors.Is(got, lifecycle.ErrServerUnavailable))
28 assert.Check(t, errors.Is(got, exec.ErrNotFound))
29}
30
31func TestClassify_FileNotExist(t *testing.T) {
32 t.Parallel()

Callers

nothing calls this directly

Calls 2

ClassifyFunction · 0.92
CheckMethod · 0.80

Tested by

no test coverage detected