The directory created by `T.TempDir` is automatically removed when the test and all its subtests complete. This commit also refactor several cleanup logic by using `t.Cleanup` instead of `defer`. Reference: https://pkg.go.dev/testing#T.TempDir Reference: https://pkg.go.dev/testing#T.Cleanup Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> |
||
|---|---|---|
| .. | ||
| addrmanager_test.go | ||
| addrmanager.go | ||
| doc.go | ||
| error.go | ||
| go.mod | ||
| go.sum | ||
| knownaddress_test.go | ||
| knownaddress.go | ||
| log.go | ||
| netaddress_test.go | ||
| netaddress.go | ||
| network_test.go | ||
| network.go | ||