Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经编写了一个包含覆盖点和交叉点的覆盖收集代码,我不希望某些覆盖点影响收集百分比,所以我在其中使用了 option.weight=0 ,但是当我打开模拟器时,它告诉我权重为 1(默认值)!. 为什么我的零钱没有抓到?
您可能正在查看每个类型的覆盖率(而不是每个实例的覆盖率)。在这种情况下,您应该设置type_option.weight.
type_option.weight