本文整理汇总了Python中lnt.server.reporting.analysis.ComparisonResult.is_result_interesting方法的典型用法代码示例。如果您正苦于以下问题:Python ComparisonResult.is_result_interesting方法的具体用法?Python ComparisonResult.is_result_interesting怎么用?Python ComparisonResult.is_result_interesting使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lnt.server.reporting.analysis.ComparisonResult
的用法示例。
在下文中一共展示了ComparisonResult.is_result_interesting方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_really_faster
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import is_result_interesting [as 别名]
def test_really_faster(self):
"""Test getting a simple improvement."""
faster = ComparisonResult(
min, False, False, [5., 6.], [10., 10., 10.], None, None)
self.assertEquals(faster.get_value_status(), IMPROVED)
self.assertTrue(faster.is_result_interesting())
示例2: test_comp
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import is_result_interesting [as 别名]
def test_comp(self):
"""Test a real example."""
curr_samples = [0.0887, 0.0919, 0.0903]
prev = [0.0858]
uninteresting = ComparisonResult(min, False, False, curr_samples, prev)
self.assertFalse(uninteresting.is_result_interesting())
self.assertEquals(uninteresting.get_test_status(), UNCHANGED_PASS)
self.assertEquals(uninteresting.get_value_status(), UNCHANGED_PASS)
示例3: test_slower
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import is_result_interesting [as 别名]
def test_slower(self):
"""Test getting a simple regression."""
slower = ComparisonResult(min, False, False, [10.], [5.], None, None)
self.assertEquals(slower.get_value_status(), REGRESSED)
self.assertTrue(slower.is_result_interesting())