%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
# Copyright 2018 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from . import base class LoadProc(base.TestProc): """First processor in the chain that passes all tests to the next processor. """ def __init__(self, tests): super(LoadProc, self).__init__() self.tests = tests def load_initial_tests(self, initial_batch_size): """ Args: exec_proc: execution processor that the tests are being loaded into initial_batch_size: initial number of tests to load """ loaded_tests = 0 while loaded_tests < initial_batch_size: try: t = next(self.tests) except StopIteration: return if self._send_test(t): loaded_tests += 1 def next_test(self, test): assert False, 'Nothing can be connected to the LoadProc' def result_for(self, test, result): try: while not self._send_test(next(self.tests)): pass except StopIteration: # No more tests to load. pass