An open API service indexing awesome lists of open source software.

https://github.com/wader/osleaktest

Checks for leaked fds, child processes and temp files
https://github.com/wader/osleaktest

file-descriptor go golang leak processes tempfiles testing

Last synced: over 1 year ago
JSON representation

Checks for leaked fds, child processes and temp files

Awesome Lists containing this project

README

          

## osleaktest

Checks for leaked fds, child processes and temp files. Inspired by https://github.com/fortytw2/leaktest

### Usage

Note that `osleaktest` might not work well when running tests in parallel as the tests
run in the same process making it hard to know which resource is used by who.

```go
func Test(t *testing.T) {
defer osleaktest.Check(t)()
// test that uses fds, processes or temp files
}
```