prometheus/discovery/file
Eng Zer Jun 3e67654d37
refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory
The directory created by `T.TempDir()` and `B.TempDir()` is
automatically removed when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Reference: https://pkg.go.dev/testing#B.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-01-22 18:57:30 +08:00
..
fixtures fixes yamllint errors 2021-06-12 12:47:47 +02:00
file.go replace gopkg.in/fsnotify/fsnotify.v1 by github.com/fsnotify/fsnotify (#9781) 2021-11-17 13:07:14 +01:00
file_test.go refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory 2022-01-22 18:57:30 +08:00