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

Function TestClassify_NetError

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

Source from the content-addressed store, hash-verified

41}
42
43func TestClassify_NetError(t *testing.T) {
44 t.Parallel()
45 // *net.OpError satisfies net.Error.
46 netErr := &net.OpError{Op: "dial", Err: errors.New("refused")}
47 got := lifecycle.Classify(netErr)
48 assert.Check(t, errors.Is(got, lifecycle.ErrTransport))
49}
50
51func TestClassify_InitNotification(t *testing.T) {
52 t.Parallel()

Callers

nothing calls this directly

Calls 3

ClassifyFunction · 0.92
CheckMethod · 0.80
NewMethod · 0.45

Tested by

no test coverage detected