コード例 #1
0
    def run(self, bench_name, test_bench_ids):  # pylint: disable=invalid-name
        """Runs the experimental find_change_points on each TestBench entity.

    This runs SimulateAlertProcessing in parallel and returns a list of
    the combined results.

    Args:
      bench_name: A string bench name.
      test_bench_ids: List of TestBench IDs.

    Yields:
      Pipeline instance.
    """
        results = []
        for bench_id in test_bench_ids:
            result_future = yield SimulateAlertProcessingPipeline(
                bench_name, bench_id)
            results.append(result_future)
        yield pipeline_common.List(*results)
コード例 #2
0
 def testList(self):
     self.assertEquals([5, 'hello', 6.7],
                       self.run_pipeline(common.List(5, 'hello',
                                                     6.7)).default.value)