Esempio n. 1
0
def create_build_range(values):
    info_fetcher = None  # we should not need to access it

    data = []
    for v in values:
        data.append(build_range.FutureBuildInfo(info_fetcher, v))
    return build_range.BuildRange(info_fetcher, data)
Esempio n. 2
0
 def create(self, values):
     info_fetcher = self.mocker.Mock(spec=InfoFetcher)
     info_fetcher.find_build_info.side_effect = lambda i: i
     future_build_infos = [
         build_range.FutureBuildInfo(info_fetcher, v) for v in values
     ]
     return build_range.BuildRange(info_fetcher, future_build_infos)
Esempio n. 3
0
def _build_range(fb, rng):
    return build_range.BuildRange(
        fb.build_info_fetcher,
        [build_range.FutureBuildInfo(fb.build_info_fetcher, i) for i in rng])