MCPcopy Create free account
hub / github.com/docker/compose / TestIsUnknown

Function TestIsUnknown

pkg/api/errors_test.go:48–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestIsUnknown(t *testing.T) {
49 err := fmt.Errorf(`object "name": %w`, ErrUnknown)
50 assert.Assert(t, IsUnknownError(err))
51
52 assert.Assert(t, !IsUnknownError(errors.New("another error")))
53}

Callers

nothing calls this directly

Calls 1

IsUnknownErrorFunction · 0.85

Tested by

no test coverage detected