mohammed90 / leakcheck

Leakcheck checks whether program cleanly uses files and connections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

leakcheck

leakcheck analyses program syscalls and checks whether:

  • Files are properly closed
  • Open files are not deleted
  • Connections are closed properly
  • Servers are stopped properly
  • With -temp, whether tests use only temp directory for tests.

Currently supported:

  • Linux amd64
  • Linux 386
  • Mac
  • Windows

Using with Go test

This can be used together with Go tests:

# checking for proper connection and file use
go test -exec leakcheck .

# additionally checking that all files are created in temp
go test -exec "leakcheck -temp" .

About

Leakcheck checks whether program cleanly uses files and connections


Languages

Language:Go 100.0%