Skip to content

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,
)
ParameterTypeDefaultDescription
$labelstringrequiredThe label as reported to Target::maximize()/minimize().
$directionRunner\TargetDirectionrequiredWhich way the label was pushed.
$best?floatrequiredThe best score any passing run reached, in that direction; null when no run reported the label.
$improvementsintrequiredHow many times the best improved, across the random and the search phase — each one was a Event\TargetImproved.
$recalledint0How many stored best inputs the search started from (Runner\SearchCorpus).