Coverall分支[[0,0]]遗漏了意思?

时间:2018-12-31 04:39:48

标签: code-coverage coveralls

我只是从工作服开始并测试覆盖率,我看到了这样的信息。数组是什么意思?我应该如何解释这些?我似乎在文档或在线中找不到关于这些含义的任何地方。

enter image description here

1 个答案:

答案 0 :(得分:0)

第一个索引是区块号,第二个索引是GCC分配的分支号

根据我在lcov documentation上的理论来获取分支机构的覆盖范围信息

BRDA: line number,block number,branch number,taken

Block  number  and  branch  number are gcc internal IDs for the branch.
Taken is either '-' if the basic block containing the branch was  never
executed or a number indicating how often that branch was taken.