MCPcopy
hub / github.com/docker/compose / TestIsNotFound

Function TestIsNotFound

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

Source from the content-addressed store, hash-verified

25)
26
27func TestIsNotFound(t *testing.T) {
28 err := fmt.Errorf(`object "name": %w`, ErrNotFound)
29 assert.Assert(t, IsNotFoundError(err))
30
31 assert.Assert(t, !IsNotFoundError(errors.New("another error")))
32}
33
34func TestIsAlreadyExists(t *testing.T) {
35 err := fmt.Errorf(`object "name": %w`, ErrAlreadyExists)

Callers

nothing calls this directly

Calls 1

IsNotFoundErrorFunction · 0.85

Tested by

no test coverage detected