本文整理汇总了Python中lnt.server.reporting.analysis.ComparisonResult.get_value_status方法的典型用法代码示例。如果您正苦于以下问题:Python ComparisonResult.get_value_status方法的具体用法?Python ComparisonResult.get_value_status怎么用?Python ComparisonResult.get_value_status使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lnt.server.reporting.analysis.ComparisonResult
的用法示例。
在下文中一共展示了ComparisonResult.get_value_status方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_really_faster
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [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_big_no_regression_flat_line_multi
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_big_no_regression_flat_line_multi(self):
"""Same data, but bigger 10 + 5% variation, multisample current."""
flat = ComparisonResult(
min, False, False, [10.0606, 10.4169, 10.1859],
BIG_NUMBERS_FLAT[0:10], None, None)
ret = flat.get_value_status()
self.assertEquals(ret, UNCHANGED_PASS)
示例3: test_comp
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [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)
示例4: test_bimodal_alternating_regression
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_bimodal_alternating_regression(self):
"""Bimodal alternating regression."""
bimodal = ComparisonResult(min, False, False, [BM_AL_REG[11]],
BM_AL_REG[0:10], None, None)
self.assertEquals(bimodal.get_value_status(), REGRESSED)
示例5: test_bimodal_alternating
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_bimodal_alternating(self):
"""Bimodal which sticks in a mode for a while."""
bimodal = ComparisonResult(min, False, False, [BM_ALTERNATE[10]],
BM_ALTERNATE[0:9], None, None)
self.assertEquals(bimodal.get_value_status(), UNCHANGED_PASS)
示例6: test_noise_bimodal_alternating
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_noise_bimodal_alternating(self):
"""Bimodal alternating with 5% noise."""
bimodal = ComparisonResult(min, False, False, [BM_AL_NOISE[10]],
BM_AL_NOISE[0:9], None, None)
self.assertEquals(bimodal.get_value_status(), UNCHANGED_PASS)
示例7: test_bimodal
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_bimodal(self):
"""A bimodal line, with no regressions."""
bimodal = ComparisonResult(min, False, False, [BIMODAL[10]],
BIMODAL[0:9], None, None)
self.assertEquals(bimodal.get_value_status(), UNCHANGED_PASS)
示例8: test_noise_bimodal
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_noise_bimodal(self):
"""Bimodal line with 5% noise."""
bimodal = ComparisonResult(min, False, False, [BIMODAL_NOISE[10]],
BIMODAL_NOISE[0:9], None, None)
self.assertEquals(bimodal.get_value_status(), UNCHANGED_PASS)
示例9: test_noisy_regression_5_multi
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_noisy_regression_5_multi(self):
"""A regression in 5% noise, more current samples."""
flat = ComparisonResult(min, False, False, [12.2821, 12.2141, 12.3077],
MS_5_REG[0:9], None, None)
ret = flat.get_value_status()
self.assertEquals(ret, REGRESSED)
示例10: test_noise_improvement
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_noise_improvement(self):
"""An improvement with 5% noise."""
flat = ComparisonResult(min, False, False, [IMP_NOISE[10]],
IMP_NOISE[0:9], None, None)
self.assertEquals(flat.get_value_status(), IMPROVED)
示例11: test_noise_slow_regression
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_noise_slow_regression(self):
slow = ComparisonResult(
min, False, False, [SLOW_REG_NOISE[12]], SLOW_REG_NOISE[0:11],
None, None)
self.assertEquals(slow.get_value_status(), REGRESSED)
示例12: test_simple_improvement
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_simple_improvement(self):
"""An improvement without noise."""
flat = ComparisonResult(min, False, False, [IMP[10]], IMP[0:9])
self.assertEquals(flat.get_value_status(), IMPROVED)
示例13: test_big_no_regression_flat_line_noise
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_big_no_regression_flat_line_noise(self):
"""Same data, but bigger 10 + 5% variation."""
flat = ComparisonResult(
min, False, False, [10.25], FLAT_NOISE2[0:10], None, None)
ret = flat.get_value_status()
self.assertEquals(ret, UNCHANGED_PASS)
示例14: test_bimodal_regression
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_bimodal_regression(self):
"""A regression in a bimodal line."""
bimodal = ComparisonResult(min, False, False, [BM_REGRESSION[12]],
BM_REGRESSION[0:11], None, None)
self.assertEquals(bimodal.get_value_status(), REGRESSED)
示例15: test_no_regression_flat_line_noise
# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_value_status [as 别名]
def test_no_regression_flat_line_noise(self):
"""Now 4% noise."""
flat = ComparisonResult(
min, False, False, [1.020], FLAT_NOISE[0:10], None, None)
ret = flat.get_value_status()
self.assertEquals(ret, UNCHANGED_PASS)