3 ms·
This is how Go's test coverage tool works, except in the Go case it was easy to do because there are libraries for reading and writing Go source code in the sta
by enneff 12y ago
This is how Go's test coverage tool works, except in the Go case it was easy to do because there are libraries for reading and writing Go source code in the standard library.
Details: http://blog.golang.org/cover http://blog.golang.org/cover
- pdw 12y agoGCC can do it as well, compile your code with --coverage and `gcov -c` will tell you how often each branch was taken.