Skip to content
/ leakcheck Public

Leakcheck checks whether program cleanly uses files and connections

Notifications You must be signed in to change notification settings

loov/leakcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages