0

我正在使用 stryker-mutator 进行突变测试,在运行特定文件时,我收到以下突变结果

[Survived] StringLiteral
-             logger.debug("Referer not defined");
+             logger.debug("");

[Survived] ArithmeticOperator
-             refresh_time * 60 * 1000
+             refresh_time * 60 / 1000

测试和覆盖 StringLiterals、ArithmenticOperators 等的最佳方法是什么?我可以为 Conditional、Equality 和 BlockStatments 做到这一点。

4

0 回答 0