本文整理匯總了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())