eclipse代码的红绿黄背景颜色——利用 Coverage 查看代码的 session覆盖率 和 决策分支执行覆盖情况

直接上图,最近发现eclipse一个比较方便的功能,叫 Coverage。可以直接查看代码块 和 决策分支 成功运行后的覆盖率情况。

Source lines containing executable code get the following color code:(可执行的源代码块附带的颜色是这么一回事 :)

  • green for fully covered lines,(绿色是完全100%覆盖
  • yellow for partly covered lines (some instructions or branches missed) and(黄色是部分覆盖,有时是因为语句或分支丢失了)
  • red for lines that have not been executed at all.(红色的代表没执行过

In addition colored diamonds are shown at the left for lines containing decision branches. The colors for the diamonds have a similar semantic than the line highlighting colors:(行数左边颗钻石的颜色表示为:)

    评论 4
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

    当前余额3.43前往充值 >
    需支付:10.00
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值