TargetOutcome
Rasuvaeff\PropertyTesting\Runner\TargetOutcome
Class — Package: property-testing-core — Source — Version: v1.0.0-1-g88fdee2
What the search did for one Target label.
Constructor
php
__construct(
string $label,
\Runner\TargetDirection $direction,
?float $best,
int $improvements,
int $recalled = 0,
)| Parameter | Type | Default | Description |
|---|---|---|---|
$label | string | required | The label as reported to Target::maximize()/minimize(). |
$direction | Runner\TargetDirection | required | Which way the label was pushed. |
$best | ?float | required | The best score any passing run reached, in that direction; null when no run reported the label. |
$improvements | int | required | How many times the best improved, across the random and the search phase — each one was a Event\TargetImproved. |
$recalled | int | 0 | How many stored best inputs the search started from (Runner\SearchCorpus). |