spiegel_podman/pkg/bindings/test
Kir Kolyshkin a94d273a8f
Replace os.Is* error checks with errors.Is
Using os.Is{Exist,NotExist,Permission} checks is not recommended in the
new code (see official documentation). While using it in the existing
code is OK, it may still result in a subtle errors later (for a specific
example of that, see [1]).

Replace those with errors.Is.

Generated by:

	gofmt -r 'os.IsExist(a) -> errors.Is(a, os.ErrExist)' -w .
	gofmt -r 'os.IsNotExist(a) -> errors.Is(a, os.ErrNotExist)' -w .
	gofmt -r 'os.IsPermission(a) -> errors.Is(a, os.ErrPermission)' -w .
	goimports -w .
	git diff vendor test/tools/vendor | patch -p1 -R

[1]: https://github.com/opencontainers/runc/pull/5061
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 7f7b35356f)

[Added extra replacements manually that were only in the 5.8 tree]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-04 19:38:16 +02:00
..
fixture Add guard for BuildOptions.CommonBuildOpts 2021-09-30 14:30:06 -07:00
api_response_test.go fix: system prune JSON unmarshalling error in remote client 2025-10-14 14:33:12 +02:00
attach_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
auth_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
common_test.go Replace os.Is* error checks with errors.Is 2026-06-04 19:38:16 +02:00
connection_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_test.go test: fix "run healthcheck" bindings test 2025-09-30 22:58:34 +09:00
create_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
exec_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
generator_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_test.go CI: use local registry, part 2 of 3: fix tests 2024-07-11 04:39:45 -06:00
info_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
manifests_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
networks_test.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
pods_test.go Replace golang.org/x/exp/slices with slices from std 2024-04-23 11:16:40 +02:00
resource_test.go Replace os.Is* error checks with errors.Is 2026-06-04 19:38:16 +02:00
secrets_test.go update golangci-lint to 1.61.0 2024-09-17 13:30:59 +02:00
system_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
test_suite_test.go update to ginkgo v2 2023-05-02 11:27:35 +02:00
types_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volumes_test.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00