用浏览器打开html_dir目录下的 index.html 就可以看到 Function Coverage、Condition/decision Coverage 覆盖和未覆盖的数目及比例。 还要提一个可能产生困惑的地方,就是在浏览器中,打开某个源代码文件时,最右端会有一些 -->、 T、F、t、f、X 等等这样的标记, 它们表示代码执行的一些轨迹,以及代码的具体覆盖情况,具体的含义可以参考官网给出的解释。 An arrow --> indicates incomplete coverage. An X indicates one of: a function or lambda expression that was entered a switch label that was selected a try-block that finished an exception handler that was entered a range-based for statement body that was entered A T or F indicates a boolean decision that evaluated true or false, respectively. A t or f indicates a boolean condition within a decision if the condition evaluated true or false, respectively. A k indicates a constant decision or condition. Since no variation in coverage is possible, this mark is supplementary. The slash / means this probe is excluded from summary results.