当前位置: 首页>>代码示例>>Python>>正文


Python ComparisonResult.get_test_status方法代码示例

本文整理汇总了Python中lnt.server.reporting.analysis.ComparisonResult.get_test_status方法的典型用法代码示例。如果您正苦于以下问题:Python ComparisonResult.get_test_status方法的具体用法?Python ComparisonResult.get_test_status怎么用?Python ComparisonResult.get_test_status使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在lnt.server.reporting.analysis.ComparisonResult的用法示例。


在下文中一共展示了ComparisonResult.get_test_status方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_comp

# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_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)
开发者ID:BillSeurer,项目名称:lnt,代码行数:11,代码来源:analysis.py

示例2: test_keep_on_failing_status

# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_status [as 别名]
 def test_keep_on_failing_status(self):
     """Test getting a repeated fail."""
     improved = ComparisonResult(min, True, True, None, None, None, None)
     self.assertEquals(improved.get_test_status(), UNCHANGED_FAIL)
开发者ID:couchbaselabs,项目名称:cbnt,代码行数:6,代码来源:analysis.py

示例3: test_regressed_status

# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_status [as 别名]
 def test_regressed_status(self):
     """Test getting a test status improvement."""
     improved = ComparisonResult(min, True, False, None, [10.], None, None)
     self.assertEquals(improved.get_test_status(), REGRESSED)
开发者ID:couchbaselabs,项目名称:cbnt,代码行数:6,代码来源:analysis.py

示例4: test_improved_status

# 需要导入模块: from lnt.server.reporting.analysis import ComparisonResult [as 别名]
# 或者: from lnt.server.reporting.analysis.ComparisonResult import get_test_status [as 别名]
 def test_improved_status(self):
     """Test getting a test status improvement."""
     improved = ComparisonResult(min, False, True, [1.], None, None, None)
     self.assertEquals(improved.get_test_status(), IMPROVED)
开发者ID:couchbaselabs,项目名称:cbnt,代码行数:6,代码来源:analysis.py


注:本文中的lnt.server.reporting.analysis.ComparisonResult.get_test_status方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。