srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go and Java, with Python, JavaScript, and Ruby in beta) with a common output format, and a CLI tool for running the analysis.
This change fixes many data races present in the tests, where the actual method being tested runs several other goroutines, with each trying to touch a global counter variable. After this change, I am able to successfully run all tests with the race detector enabled.
Also enable the Go race detector in Travis, to help catch these in the future.
This change fixes many data races present in the tests, where the actual method being tested runs several other goroutines, with each trying to touch a global counter variable. After this change, I am able to successfully run all tests with the race detector enabled.
Also enable the Go race detector in Travis, to help catch these in the future.