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.
我想在我的项目中忽略变量赋值,例如这样的:
val someString = "123"
将被视为未经覆盖测试,我可以使用注释显式标记该行:
// $COVERAGE-OFF$ val someString = "123" // $COVERAGE-ON$
在这一点上这有点难,因为项目很大,我真的不认为应该为此目的使用评论。