Update configuration to reflect values used in Type Tracing evaluation
@@ -427,23 +427,23 @@ class TestCreationConfiguration:
"""Weight to use None as parameter type during test generation.
Expects values > 0."""
- any_weight: float = 10
+ any_weight: float = 5
"""Weight to use Any as parameter type during test generation.
Expects values > 0."""
- original_type_weight: float = 25
+ original_type_weight: float = 5
"""Weight to use the originally annotated type as parameter type during test
generation. Expects values > 0."""
- type_tracing_weight: float = 50
+ type_tracing_weight: float = 10
"""Weight to use the type guessed from type tracing as parameter type during
test generation. Expects values > 0."""
- type4py_weight: float = 50
+ type4py_weight: float = 10
"""Weight to use types inferred from type4py as parameter type during
test generation. Expects values > 0."""
- type_tracing_kept_guesses: int = 5
+ type_tracing_kept_guesses: int = 2
"""Amount of kept recently guessed types per parameter, when type tracing
is used."""
@@ -451,7 +451,7 @@ class TestCreationConfiguration:
"""Probability to wrap the type required for a *arg or **kwargs parameter
in a list or dict, respectively. Expects values in [0,1]"""
- negate_type: float = 0.01
+ negate_type: float = 0.1
"""When inferring a type from proxies, it may also be desirable to negate the chosen
type, e.g., such that an instance check or a getattr() evaluate to False.
Expects values in [0,1]"""
