9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b,src/python/pants/rules/core/fmt_test.py,FmtTest,test_multiple_languages_with_multiple_targets,#FmtTest#,260
Before Change
self.make_hydrated_target_with_origin(name="py1", adaptor_type=PythonTargetAdaptor),
self.make_hydrated_target_with_origin(name="py2", adaptor_type=PythonTargetAdaptor),
]
java_targets = [
self.make_hydrated_target_with_origin(name="java1", adaptor_type=JvmBinaryAdaptor),
self.make_hydrated_target_with_origin(name="java2", adaptor_type=JvmBinaryAdaptor),
]
python_addresses = [
target_with_origin.target.adaptor.address for target_with_origin in python_targets
]
java_addresses = [
target_with_origin.target.adaptor.address for target_with_origin in java_targets
]
def get_stdout(*, per_target_caching: bool) -> str:
stdout = self.run_fmt_rule(
language_formatters=[PythonFormatters, JavaFormatters],
After Change
def test_multiple_languages_with_multiple_targets(self) -> None:
fortran_addresses = [Address.parse(":py1"), Address.parse(":py2")]
smalltalk_addresses = [Address.parse(":py1"), Address.parse(":py2")]
fortran_targets = [
self.make_target_with_origin(addr, target_cls=FortranTarget)
for addr in fortran_addresses
]
smalltalk_targets = [
self.make_target_with_origin(addr, target_cls=SmalltalkTarget)
for addr in smalltalk_addresses
]
def get_stdout(*, per_target_caching: bool) -> str:
stdout = self.run_fmt_rule(
language_target_collection_types=[FortranTargets, SmalltalkTargets],
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 11
Instances
Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/rules/core/fmt_test.py
Class Name: FmtTest
Method Name: test_multiple_languages_with_multiple_targets
Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/rules/core/fmt_test.py
Class Name: FmtTest
Method Name: test_single_language_with_multiple_targets
Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/rules/core/lint_test.py
Class Name: LintTest
Method Name: test_multiple_targets_with_one_linter
Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/rules/core/lint_test.py
Class Name: LintTest
Method Name: test_multiple_targets_with_multiple_linters