diff options
| author | Eng Zer Jun <engzerjun@gmail.com> | 2022-03-23 16:04:21 +0800 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-03-28 12:03:24 +0200 |
| commit | 0d08379d0a6e5c91206a82e207c6c05f0f9fddc4 (patch) | |
| tree | 56b9d5c90b545c2d2e7bd74b059b1d1e2be50834 /.github | |
| parent | 89bc860804252dbacb8c2bea60b9204859f4afd7 (diff) | |
all: use `t.TempDir` to create temporary test directory
This commit replaces all `ioutil.TempDir` with `t.TempDir` in tests.
The directory created by `t.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions
