9bf971d752390826b52d2220429fc07f5d30d247,src/python/pants/engine/target_test.py,HaskellGhcExtensions,hydrate,#HaskellGhcExtensions#Any#,26
Before Change
// Add some arbitrary validation to test that hydration/validation works properly.
bad_extensions = [extension for extension in raw_value if not extension.startswith("Ghc")]
if bad_extensions:
raise TargetDefinitionException(
address,
f"All elements of `{self.alias}` must be prefixed by `Ghc`. Received "
f"{bad_extensions}.",
)
return tuple(raw_value)
class UnrelatedField(BoolField):
After Change
// Add some arbitrary validation to test that hydration/validation works properly.
bad_extensions = [extension for extension in raw_value if not extension.startswith("Ghc")]
if bad_extensions:
raise InvalidFieldException(
f"The {repr(self.alias)} field in target {address} expects all elements to be "
f"prefixed by `Ghc`. Received {bad_extensions}.",
)
return tuple(raw_value)
class UnrelatedField(BoolField):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: 9bf971d752390826b52d2220429fc07f5d30d247
Time: 2020-03-20
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/target_test.py
Class Name: HaskellGhcExtensions
Method Name: hydrate
Project Name: pantsbuild/pants
Commit Name: 9bf971d752390826b52d2220429fc07f5d30d247
Time: 2020-03-20
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/targets.py
Class Name: PythonSources
Method Name: validate_snapshot
Project Name: pantsbuild/pants
Commit Name: 9bf971d752390826b52d2220429fc07f5d30d247
Time: 2020-03-20
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/targets.py
Class Name: PythonBinarySources
Method Name: validate_snapshot
Project Name: pantsbuild/pants
Commit Name: 9bf971d752390826b52d2220429fc07f5d30d247
Time: 2020-03-20
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/targets.py
Class Name: Timeout
Method Name: hydrate