crashtest.hxsmith.program
Assemble a whole Haxe module from a seed.
class Program
seed: int
class_name: str
source: str
features: Tuple[str, ...]
filename: str
init
def __init__(seed: int, class_name: str, source: str, features: Tuple[str, ...]) -> None
generate
def generate(seed: int, only: Optional[Iterable[str]] = None, exclude: Iterable[str] = (), config: Optional[Config] = None, swarm: float = 0.0) -> Program
The program for seed. The same arguments always give the same source.
With swarm > 0 each feature is enabled for this seed with that probability (always keeping
variables, so there is output). Swarm testing keeps programs small and makes a failure
attributable: a feature missing from every failing program is not the cause.