gpt4 book ai didi

java - Eclipse/Preferences/General/Editors/Text Editors/Annotations/中的“完全覆盖”和“无覆盖”代表什么?

转载 作者:行者123 更新时间:2023-12-01 12:28:12 24 4
gpt4 key购买 nike

Eclipse/Preferences/General/Editors/Text Editors/Annotations/中的“完全覆盖”和“无覆盖”代表什么?

最佳答案

这些很可能来自 EclEmma插件(代码覆盖率分析)

来自 http://www.eclemma.org/userdoc/annotations.html 的文档:

Source lines containing executable code get the following color code:

  • green for fully covered lines,
  • 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:

  • green for fully covered branches,
  • yellow for partly covered branches and
  • red when no branches in the particular line have been executed.

...

The Eclipse preferences section GeneralAppearanceEditorsText EditorsAnnotations allows to modify the visual representation of coverage highlighting. The corresponding entries are:

  • Full Coverage
  • Partial Coverage
  • No Coverage

关于java - Eclipse/Preferences/General/Editors/Text Editors/Annotations/中的“完全覆盖”和“无覆盖”代表什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26165758/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com