freneticlib.stopcriteria.counter
Module Contents
Classes
A concrete .StopCriterion based on execution counts. |
- class freneticlib.stopcriteria.counter.CountingStop(n_total, n_random, count_invalid=False)[source]
Bases:
freneticlib.stopcriteria.abstract.StopCriterionA concrete .StopCriterion based on execution counts.
- Parameters:
- property is_over: bool
Returns: (bool): States whether there is any total execution budget left or not.
- property is_random_phase: bool
Returns: (bool): States whether there is any random budget is still available.
- exec_count = 0
Keeps track of the number of executions.
- execute_test(test: freneticlib.core.core.TestIndividual)[source]
Inform the stop criterion that a test has been executed. Increases
exec_count, but only ifself.count_invalidisTrueand the
test["outcome"]is notOutcome.INVALID.- Parameters:
test (TestIndividual) – The test that has been executed.