generating branch coverage data for lcov

后端 未结 4 578
旧巷少年郎
旧巷少年郎 2021-02-02 11:44

i\'m trying to use lcov for code coverage metrics, but I cannot get branches coverage to work.

Here\'s how i\'m using it:

g++ -ggdb3 --coverage src/read.         


        
4条回答
  •  臣服心动
    2021-02-02 12:30

    based on this post, the difference may depend on the version of gcc you are using. Can you share which versions you are using. I am not getting branch coverage on:

     i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
    

提交回复
热议问题