image/pkg/blobinfocache
Miloslav Trmač a56436cb15 Use testing.T.Setenv instead of os.Setenv in tests
... to simplify and benefit from Go 1.17.

In some cases, wrap tests in testing.T.Run() to decrease
the scope, or to make the relationship between the test and the
cleanup clearer.  In some cases it's still a bit awkward
because there is no testing.T.Unsetenv, but still worth it.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-06-14 20:57:04 +02:00
..
boltdb Simplify blobifocache/internal/test.GenericCache 2022-03-17 20:35:00 +01:00
internal Simplify blobifocache/internal/test.GenericCache 2022-03-17 20:35:00 +01:00
memory Simplify blobifocache/internal/test.GenericCache 2022-03-17 20:35:00 +01:00
none Spelling 2021-03-23 14:37:37 -04:00
default.go Spelling 2021-03-23 14:37:37 -04:00
default_test.go Use testing.T.Setenv instead of os.Setenv in tests 2022-06-14 20:57:04 +02:00