ac0b7e4b3d8267c682b2e821f8db592ca94103e3,tests/python/pants_test/engine/test_mapper.py,AddressMapperTest,resolve,#AddressMapperTest#Any#,169

Before Change


                             type_alias="target")

  def resolve(self, spec):
    request = self.scheduler.execution_request([UnhydratedStructs], [spec])
    result = self.scheduler.execute(request)
    if result.error:
      raise result.error

    // Expect a single root.
    if len(result.root_products) != 1:
      raise Exception("Wrong number of result products: {}".format(result.root_products))
    state = result.root_products[0][1]
    if type(state) is Throw:
      raise Exception(state.exc)
    return state.value.dependencies

  def resolve_multi(self, spec):

After Change


                             type_alias="target")

  def resolve(self, spec):
    uhs, = self.scheduler.product_request(UnhydratedStructs, [Specs(tuple([spec]))])
    return uhs.dependencies

  def resolve_multi(self, spec):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: tests/python/pants_test/engine/test_mapper.py
Class Name: AddressMapperTest
Method Name: resolve


Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/address_mapper.py
Class Name: LegacyAddressMapper
Method Name: scan_build_files


Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name: LegacyBuildGraph
Method Name: _inject_specs