coredns/plugin/file/tree
Ben Kochie 3f6dfbd2a7
Fix temp file close error (#6068)
Avoid Go 1.20 test error by not attempting to close the testing temp
file unless there was an error in Read().
* Use a CreateTemp() to create unique test files.
* Defer the deletion of the temp file.

Woarkaround for: https://github.com/golang/go/issues/59938

Signed-off-by: SuperQ <superq@gmail.com>
2023-05-03 13:53:48 -04:00
..
all.go plugin/file: Rename do to walk and cleanup and document (#2987) 2019-07-18 17:44:47 +00:00
auth_walk.go plugin/sign: fix signing of authoritative data (#3479) 2019-12-06 19:54:31 +00:00
elem.go plugin/file: Rename do to walk and cleanup and document (#2987) 2019-07-18 17:44:47 +00:00
glue.go plugin/file: simplify locking (#3024) 2019-07-23 18:32:44 +00:00
less.go Replacing 'HTTP' by 'HTTPS' for securing links (#2591) 2019-02-21 07:21:25 +00:00
less_test.go add golangci-lint linter (#5499) 2022-07-10 11:06:33 -07:00
print.go plugin/file: Fix print tree error (#4962) 2021-11-19 16:18:31 +00:00
print_test.go Fix temp file close error (#6068) 2023-05-03 13:53:48 -04:00
tree.go cleanup: remove redundant return statement (#3297) 2019-09-23 14:40:14 +01:00
walk.go plugin/sign: fix signing of authoritative data (#3479) 2019-12-06 19:54:31 +00:00