Displaying 1 result from an estimated 1 matches for "5945e5b2".
2020 May 04
2
[EXTERNAL] How to get branch coverage by using 'source-based code coverage'
Hi, Alan
Thanks for making it clear. But I was more confused now :(
I tested on a simple program and used both gcov and lcov to get branch
coverage.
The code and build commands as below:
*Example simple.cc*
#include <string>
// If not comment this line, the branch coverage won't reach to 100%
// #include <iostream>
int main(int argc, const char* argv[]) {
std::string str =