moby/pkg/ioutils
Sebastiaan van Stijn 3cfc1ffb0a
pkg/ioutils: some cleanups in tests
- remove gotest.tools dependency as it was only used in one test,
  and only for a trivial check
- use t.TempDir()
- rename vars that collided with package types
- don't use un-keyed structs
- explicitly ignore some errors to please linters
- use iotest.ErrReader
- TestReadCloserWrapperClose: verify reading works before closing :)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-07-19 19:17:22 +02:00
..
buffer.go Add canonical import comment 2018-02-05 16:51:57 -05:00
buffer_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
bytespipe.go fix blockThreshold full bug 2023-01-17 12:56:43 +08:00
bytespipe_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
fswriters.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
fswriters_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
readers.go fix go-digest to make sure the algorithms are registered 2021-08-20 00:35:41 +02:00
readers_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
writeflusher.go Add canonical import comment 2018-02-05 16:51:57 -05:00
writers.go Add canonical import comment 2018-02-05 16:51:57 -05:00
writers_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00